Pedro Sanchez’s Socialists on Sunday won their second set of elections in a month, boosting their ambition to form a government at home in Spain and target a top EU job in Brussels.