Are you retired and in receipt of the UK state pension? If so you need to get an S1 form from DWP at Newcastle.
With that you can register with the Spanish health service (INSS), get a SIP number, and then you sign on with a doctor.
If you aren't eligible for an S1 then you'll need private health insurance.
There's plenty of information in the Healthcare etc sub-forum, so browse that.