London:New Zealand overcame a disputed dismissal and a lower-order collapse to beat England on the last ball for a one-wicket victory in the third one-day international on Wednesday at the Oval.
After England was 245 all out, New Zealand reached 246 for nine to take a 2-1 lead in the five-match series.
The match was highlighted by an ugly incident late.
New Zealand, requiring just 26 to win from 38 balls, reacted angrily when Grant Elliott was run out after colliding with Ryan Sidebottom after setting off for a quick single.
Elliott fell after the collision, allowing Kevin Pietersen to knock off his bails. England captain Paul Collingwood refused to withdraw the appeal and Elliott had to depart for 24 amid loud jeers from the crowd.
"I asked Sidebottom if he was going for the ball and he said he was, definitely," Collingwood said. "It was my decision as captain alone. It was a crucial time of the game and it was very tense out there.
"But the reaction of the crowd as well as the doubt in the back of my mind combined to make me know I?d made the wrong decision."
The incident came a week after the Kiwis were denied victory at Edgbaston when the umpires took the players off the field in controversial circumstances.
"I?d like to apologize for our reaction, too," New Zealand captain Daniel Vettori said. "It was over the top. At the time I was livid. The whole team was. I?d like to think that I?d react differently in that situation."
Kyle Mills responded by hitting a Collingwood delivery over wide long on for six in the penultimate over to wrest the initiative away from England.
New Zealand required just three runs from the last over but after Mills scrambled for a single, Mark Gillespie barely survived the next four deliveries.
He managed to squeeze the final ball into the covers but England failed to backup Graeme Swann
New Zealand made an indifferent start. They lost Brendon McCullum (1) and Ross Taylor (6) early and were reduced to 24 for two before Scott Styris (69) put on 59 for the third wicket with Jamie How (37).
Daniel Flynn departed for 12 to leave New Zealand at 106 for four, but then Jacob Oram and Styris combined to add 67 runs in 56 balls for the fifth wicket, including a Collingwood throw that struck Anderson on the buttocks.
The blow and subsequent laughter appeared to galvanize England, who claimed three quick wickets.
First Oram, having made 38 from 30 balls, was caught on the backward-square boundary. Five balls later, Styris was run out when he attempted a second run. And then Vettori lobbed Collingwood meekly to midwicket to crash from 173 for four to 189 for seven in the space of 23 balls.
Elliot, however, rallied the innings before departing with his controversial dismissal.
"We deserved the win," Vettroi said. "It would have been nice if the game had been played out lke it should be. But I?m glad Paul was so quick to apologize. Now we can move on."
Earlier, Shah and Ravi Bopara put on 75 for the fifth wicket as England limped to 245 all out from 49.2 overs.
The home side had slumped to 101 for four when Bopara and Shah set about restoring the innings. Bopara made 58 and Shah 63 as England lost their final five wickets for 42 runs.
After being asked to bat, England openers Ian Bell and Luke Wright had moved confidently to 41 in the ninth over when Wright was caught at short midwicket. Having made 18, Wright smashed Kyle Mills< to the right of Ross Taylor, who threw up a hand to hold on to the catch.
Kevin Pietersen, having survived his first ball, then heaved across the line to be caught for a duck at mid-on.
Ian Bell though continued to bat positively, hammering a six over cover as he put on 37 with Bopara for the third wicket before falling to 19-year-old Tim Southee for 46. Southee went on to claim three wickets for 47.
When Collingwood played on for 14, England were struggling at 101 for four when Shah joined Bopara.
Initially it was Bopara who was the more aggressive of the pair, but Shah, who had just a single to that point, then hit a six high over midwicket.
Bopara hit Elliot behind the corner to move to his second half-century from 69 balls but added only eight more before falling to Oram.
With wickets falling regularly thereafter, Shah went on to the attack, at one point driving Mark Gillespie for three consecutive boundaries.
He had made 63 from 71 balls when he turned for a second run after Stuart Broad had driven firmly to long off. After stumbling briefly, Gillespie exacted some measure of revenge when he hit the stumps directly with his flat throw to leave diving Shah stranded.