New Zealand 339 for 5 (Taylor 181*, Latham 71, Curran 2-57) beat England 335 for 9 (Bairstow 138, Root 102, Sodhi 4-58) by five wickets
Dunedin: Ross Taylor's stunning 181 not out helped New Zealand beat England by five wickets and level the one-day series at 2-2 with a game remaining.
Jonny Bairstow's 138 and Joe Root's 102 helped England post 335-9, despite a collapse of 21-6 in Dunedin on Wednesday.
However Taylor, struggling to run with a thigh injury, played superbly to put the hosts within sight of victory.
With three runs needed from the final over, Henry Nicholls struck a six to secure an impressive win.
After a strong start with the ball by England's seamers, Taylor and Tom Latham's 187-run fourth-wicket partnership brought New Zealand back into the game but almost faltered at the crucial moment.
Latham was finally out for 71 and Colin de Grandhomme fell for a 12-ball 23 but Taylor, despite being in visible pain, struck 13 runs off Woakes in the 47th over to swing things back in New Zealand's favour.
Taylor could only watch from the non-striker's end as Nicholls faced two dot balls, before finally clipping a leg-stump half volley over the square leg boundary to ensure victory for New Zealand.
The final ODI takes place in Christchurch on Saturda.
Earlier, centuries by Jonny Bairstow and Joe Root helped England finished on 335 for nine after losing the toss and being put into bat as Bairstow blazed his way to 138 off 106 balls and Root grafted out a hard-fought 102.
The tourists' total should have been even bigger, but a dramatic late collapse put the brakes on their scoring as spinner Ish Sodhi led a stirring New Zealand fightback.
England were 267 for 1 in the 38th over when Bairstow's dismissal sparked the loss of six wickets for 21 runs.
At one point England appeared unlikely to see out their 50 overs before a late cameo of 22 off 10 balls from Tom Curran.
Sodhi finished with four for 58, while Colin Munro and Trent Boult took two wickets apiece.
Bairstow and fellow opener Jason Roy laid the foundation for England with a 77-run partnership before Roy departed on 41.
He then combined with Root for a 190-run partnership as New Zealand's pacemen struggled to find any movement.
England passed the 100 mark in the 16th over, with Bairstow smashing the ball onto the roof of the stands on his way to a 38-ball 50.
He had a life on 74 when Mitchell Santner dropped a regulation catch at cover and went on to score his third ODI century with a four swept to the boundary.
Bairstow amassed 14 fours and seven sixes before his innings finally ended after he tried to hit Munro out of the park.
It sparked a collapse as Jos Buttler, Eoin Morgan, Ben Stokes, Moeen Ali and Chris Woakes all departed without making double figures.
Root toiled at the other end as partners came and went, bringing up his 11th ODI century off 99 balls, with six fours and two sixes.
Curran's late hit-out provided a welcome boost to the scoreline but also showed New Zealand's batsmen that runs are there for the taking as they chase 336.