Spain’s Socialists won EU elections on Sunday and were also on track to win local elections, in a boost to acting prime minister Pedro Sanchez, who already won a national election last month.