New Zealand defeated Pakistan by five wickets in the rain-curtailed second T20I, taking a 2-0 series lead.