The European Health Insurance Card is issued free of charge to anyone who is insured by or covered by a statutory social security scheme of the EEA countries or Switzerland and certain citizens and residents of the United Kingdom. From Wikipedia
Spain’s health ministry now describes private travel insurance as a strong recommendation for entry following confusion over its legal status