Seam attack drags Pakistan back into 1st NZ test