England ended Spain's 43-match unbeaten run with a hard-fought 3-2 victory in Madrid on Sunday, topping their Nations League group on goal difference.