James Vince hit his first international century as England pulled off an electrifying chase of 332 against Pakistan to complete a 3-0 clean sweep in the one-day international series.
Vince, so often criticised for his inconsistency, scored 102 from 95 balls as his side won by three wickets, despite a supreme 158 by Pakistan captain Babar Azam.
After an action-packed start to their chase, England were 165-5 in the 24th over before Vince put on 129 with Lewis Gregory to delight the raucous Edgbaston crowd.
With 38 runs needed from 48 balls, Vince hit Haris Rauf to mid-on and Gregory fell for 77 from 69 balls in the Pakistan fast bowler's next over to set up a tense finish.
But inexperienced pair Craig Overton and Brydon Carse took England to victory with two overs left.
It was the highest successful chase at Edgbaston after Pakistan posted 331-9 from their 50 overs - an innings built around a partnership of 179 between Babar and Mohammed Rizwan, who scored 74 from 58 balls.
Victory gives world champions England maximum points as they look to qualify for the 2023 World Cup.
The sides meet in a three-match Twenty20 series next, starting on Friday.
Vince the star in Birmingham run fest
The chance for Vince to play this innings would not have come but for the Covid-19 outbreak that ruled out England's entire original squad.
Few players have taken up as much air time as him in recent years - England fans often frustrated he could not transfer his undeniable talent from domestic cricket into the international arena.
But at Edgbaston Vince had to fill the role of a senior player. When captain Ben Stokes was caught behind sweeping spinner Shadab Khan, 181 runs were still needed from 180 balls.
A rapid start provided by Phil Salt (37 from 22 balls), Zak Crawley's 34-ball 39 and Stokes' 32 from 28 gave Vince and Gregory breathing space.
The pair batted sensibly but always looked to take the attacking option and were able to capitalise on poor Pakistan bowling and fielding to find boundaries.
Vince's innings was packed with typically classy off-side strokes. When he brought up his century from 91 balls he swung in his bat through the air in a celebration packed with relief.
Gregory had just smacked two sixes over the leg side before Vince fell, but ultimately an unwise drive did not matter.
This was the innings he finally delivered for England.
Babar masterclass in vain
Babar's innings will go down as one of the best in a losing cause in ODI cricket.
He had been dismissed for a duck and for 19 by Saqib Mahmood in his side's heavy defeats in the first two games but here he responded with a masterful knock.
Pakistan's approach was the opposite to England's - they made a patient start before accelerating through their innings.
Tied down by Mahmood and, after the loss of Fakhar Zaman for six, it took Babar 15 balls to get off the mark and he used 72 deliveries reaching 50.
Yet the classical, wristy right-hander went through the gears perfectly, moving from 50 to 100 in 32 balls and scoring his next 50 runs in 31 deliveries.
Matt Parkinson produced a sensational turning delivery to bowl Imam-ul-Haq for 56, but Babar, the number one ranked men's batter in ODIs, played him perfectly.
He hit the leg-spinner for two straight sixes and hammered England's seamers through mid-wicket when they bowled short, in a stand of 179 with Rizwan.
Babar was eventually dismissed for his highest international score in the final over, caught at short third man after miscuing a Brydon Carse slower ball.
Durham fast bowler Carse claimed 5-61 as Pakistan lost seven wickets for 37 runs in the last five overs.
Ragged Pakistan punished again
This defeat saw Pakistan's miserable run continue, as they were beaten again by England's second string.
They should have had enough runs but were punished for a ragged performance with the ball and in the field.
The opening over set the tone as Salt hit Shaheen Afridi for four fours. Hassan Ali began the second over with three consecutive wides.
The fielding was just as poor, with three dropped catches, plus overthrows and mis-fields.
Stokes was put down twice, on seven and then 18, which ultimately did not matter.
More crucial was Imam dropping Gregory on 10 at extra cover, when he needlessly went one-handed instead of two.
'A pretty special week' - what they said
England captain Ben Stokes: "Our effort, not just today but throughout the series, has been fantastic.
"They've gone out and expressed themselves, and that's exactly what I asked them to do at the start of the series. Nobody has taken a backwards step."
Pakistan captain Babar Azam: "We started well but were sloppy in the field.
"We had opportunities but couldn't capitalise because of our fielding. We will learn from our mistakes and hopefully not repeat them."
Player of the match, England batter James Vince: "It's pleasing to make a contribution, this time last week I didn't expect to get this opportunity. I'm delighted."
Player of the series, England fast bowler Saqib Mahmood: "It's been a pretty special week. I've been given the responsibility to take the new ball, and for me to repay that faith, I'm really happy."
Former England batter Ian Bell on Test Match Special: "County cricket has to get a lot of credit. Pulling a team together in a week just shows the depth on offer - it's brilliant."