The win leaves Spain unbeaten in 44 competitive games in a row, including five wins in as many Nations League games this season.