New Zealand reached 137-5 with 11 balls to spare in Dunedin to take control of the five-match series after Pakistan posted 135-9 off 15 overs in a rain-reduced second match.