Martin Guptill and Kane Williamson hit brisk fifties and combined in a record stand of 159 to power New Zealand to a thrilling series-clinching three-wicket win against Pakistan in the third and final one-day international in Auckland on Sunday.