New Zealand thrash Pakistan in first Test