Ross Taylor hit a record-breaking century as New Zealand beat South Africa by six runs in Christchurch to level the five-match one-day series at 1-1.