Root leads England to brink of Test win