Jonny Bairstow (138) and Joe Root (102) had earlier hit centuries as England posted 335-9, only a staggering collapse preventing them pushing up towards 400.
Yet the demise of Bairstow sparked a bad England collapse and even though they mustered 335 for nine they were under par for conditions and gave New Zealand the chance to level what has been a brilliant 50-over series.
Admittedly the odds are not overwhelmingly in their favour - England are 8/13 for victory, compared to New Zealand's 13/10 - but the manner in which England got across the line at Wellington no doubt aids the impression that they've got the measure of this series.
"It was about 110 or 120 and the physio came out and said 'Do you want to come off or keep going?' so I was glad that I made the decision to stay out there and swing", Taylor said.
Taylor went through to his 19th ODI century, his second of the series, but appeared to aggravate the quad injury that had ruled him out of the third ODI in diving to make his ground soon afterwards, and struggled to run thereafter.
Later innings of 29 from 23 balls by Jos Buttler and 23 from 19 balls from man-of-the-match Ali helped England to a total which proved to be just sufficient. The previous highest in a chase for New Zealand was Martin Guptill's unbeaten 180 against South Africa past year.
England will be concerned that they rapidly lost six wickets for 21, with eight wickets falling off the last 75 balls of their innings while only 68 were scored. His first four balls were smashed for 15 runs to leave the Black Caps needing a run a ball from the final six overs. In England, one can view matches on Sky Sports Cricket. However, Nicholls stood tall to hit his first boundary of the innings and force a deciding match.
Bairstow clubbed some absolutely massive sixes.
England wicket keeping batsmen Bairstow, who was dropped on 74, and Root had taken charge with their dominant second-wicket stand as England's top order hit top gear for the first time since the opening ODI against Australia in Melbourne. However, it heralded an epic England collapse, with the next seven wickets falling for 38 runs.
England will no doubt look back and wonder how the match got away considering New Zealand still needed 141 runs from the last 15 overs.
He was unlucky to reach a double hundred but then he would be happy to have remained unbeaten and see his side home and survive in the series. "It was an outstanding partnership with him and Tom Latham".