Pakistan trail New Zealand by 222 on day two