You must take the reg off the vehicle (retain) and pay £80 to DVLA before you sell the vehicle otherwise the reg will go with it. You will then be issued with a V778 Retention Document which you can then use to assign the reg to your next vehicle. You can retain a reg online using the .GOV website (you can simply google 'take reg off vehicle', then click on the top result that comes up)