Spain lost top spot in Nations League Group A3 on goal difference and saw their 43-match unbeaten run come to an end after a 3-2 defeat to England at the Riyadh Air Metropolitano.