This depends on whether you bought your home alone or with others.
If you bought the house/flat on your own and you die, the home will be passed on in the normal way under the terms of your will and the payments explained in this guide will be made by your estate in accordance with the scheme. If you have not made a will it will pass under the laws of intestacy.
It is recommended that a sole buyer seeks independent legal advice about this. Page 27 of 27 V1016
If you bought your home with others and one of them dies, their interest in the property will either be transferred to the surviving co-owner (s) or will pass under the terms of their will, or (if there is no will) the laws of intestacy.
It is recommended where there are two or more owners, that they seek independent legal advice about this.