Neither of those. Keep guessing and pressing.So you agree, either your car was registered in UK, and you either SORN'd it each year, and used it without tax, test or insurance in Spain.
Or it was not registered in UK, and it was registered in Spain, where you did pay Spanish road tax, tested it and insured it with a Spanish insurance company.