AB de Villiers and Andile Phehlukwayo kept calm amid a middle-order collapse to steer South Africa to a four-wicket win over New Zealand on the penultimate ball of Sunday’s first one-day international and a record-equaling 12th straight ODI win. De Villiers was at the crease when South Africa lost three wickets for one run in the space of six balls to see a comfortable cruise to victory transformed into a desperate struggle which ended when de Villiers hit a boundary for victory.