Spain saw their Euro 2025 hopes ended as England prevailed on penalties in the final.