Pakistan in trouble as they chase tricky target of 319 to win final New Zealand Test