NZ on brink of Test win as England slump