New Zealand won a Test series against South Africa for the first time with Kane Williamson hitting an unbeaten century Friday to steer them to a seven-wicket victory in the second Test.