The UK is now treated as a 'third-country' in the EU, which means British citizens are now subject to the immigration rules of any EU country they wish to live in. If you want to move to Spain from the UK, you will need to apply for a visa and a permit.