Benoit Hamon won the socialist primary on Sunday evening with almost 60 percent of the vote, beating former Prime Minister Manuel Valls.