Spanish Socialist Workers' Party leader Pedro Sanchez on Thursday won the parliamentary vote for another term as prime minister, local media reported.