The People’s Party and Vox are winning a majority of seats in parliament and will be able to form a coalition government. The Socialist Party, led by Prime Minister Pedro Sánchez, will lose power after eight years in office.