|Fourth one-day international, Trent Bridge, Nottingham|
|Pakistan 340-7 (50 overs): Babar 115, Hafeez 59, T Curran 4-75|
|England 341-7 (49.3 overs): Roy 114, Stokes 71 *, Vince 43|
|England won by three wickets; complete series win with one to play|
England survived a fright to win the fourth one today's international against Pakistan with three wickets and put together the series of a game to save.
Jason Roy's century had the home team who threw his chase out of 341, just for his dismissal to kick a collapse of four wickets for 15 runs.
But Ben Stokes didn't do 71 and Tom Curran, who should have gone out to seven, 31 to get the hosts across the line with three balls to save.
In perfect batting conditions on the Trent Bridge ground where England has racked up the two highest ODI totals all the time, Pakistan posted 340-7.
Babar Azams controlled 115 was the lead role, even though England lacked captain Eoin Morgan and restored opener Jonny Bairstow, the visitors' total did not feel that it should have posed a challenge.
The fact that England was ultimately tested can only be good for their World Cup preparations and win with a very changed side – Chris Woakes, David Willey and Liam Plunkett were also rested – further shows the depth of their teams.
England takes an inaccessible 3-0 lead in five games series, which ends at Headingley on Sunday.
Stokes guides England home
England were under pressure in the second match of the series, when Pakistan almost exceeded 373 in Southampton, but dominated the third match in Bristol.
As far as their World Cup structure goes, it was a new survey that they recovered after wobbling in a hunt.
In addition, it was a welcome return to form for Stokes, who fought with bat and ball at the end of IPL and has not yet taken a wicket in this series.
With England needing 125 from 19.4 overs, Stokes first split 42 with Joe Denly and then substantially 61 with Curran, who previously claimed 4-75 with the ball.
It was a bizarre moment when Curran would have gone out, just for Pakistan not to appeal even though the Surrey man's bats were on the fold line when the castle was removed.
Both Stokes, who beat three sixes, and Curran peppared the squares, until Curran was pounded by Hassan Ali in the 48th over.
Adil Rashid joined Stokes with 19 needed from the last two, but Junaid Khan's 49th was taken for 16 and Stokes won it from the third ball in the final over.
Roy ton before England collapse
For long periods, it looked as if Roy would lead England to rework a massive total of impunity, just as Bairstow's century was the catalyst for a comfortable chase of 359 in Bristol on Tuesday.
With Bairstow Roy rested on 94 with new opening partner James Vince and then 107 with Joe Root.
He fell on 25 by Fakhar Zaman, one of a number of early Pakistan mistakes in the field, and scored goals around the wicket – his four sexes were close to being the points of a compass.
After reaching his eighth ODI hundred from 75 balls with an incredible maximum cover, even a double century seemed possible, but when he glimpsed an attempt to pull off Mohammad Hasnain, both sides' fortunes turned.
Root was well caught in short third by Mohammad Hafeez from Imad Wasim, captain Jos Buttler swept the same baller to short legs for a dual-duck duck and Moeen Ali unluckyly beat Shoaib Malik to mid-wicket.
The collapse made Pakistan favorites, but it was discounting the unfatchable Stokes.
Not enough for Pakistan
As the battle against ballpoint placement continues in England's World Cup squad, much intrigue continued on Nottingham's new ball pairing of Mark Wood and Jofra Archer, the fastest bowlers on the host's disposal.
With both balls that regularly touched 90mph there was an extra dimension to an attack that sometimes in this series has looked at a pace.
In fact, Wood beat Pakistan opener Imam-ul-Haq on his elbow and forced him to retire. Later he also knocked Imad Wasim's helmet while Archer bounced the returning Imam.
Until then, Babar led Pakistan with its merged century and added 107 with Fakhar and 104 with Mohammad Hafeez, both of whom were making hundreds.
But in such excellent batting conditions, it was still suspected that tourists lacked the intention to come to a sum that would defeat England.
Not only that, but they were kept in control of the home team fielding and Curran, who reinforced their own World Cup jumps with yorkers and slower balls even before he tried the bat.
"The perfect outlet for England" analysis
Former England Captain Michael Vaughan: "This game has almost been the perfect scenario for England: putting under this pressure with its key roles not out at the end has not been in good condition.
"Ben Stokes – he hasn't played much needed time in the middle, in a tight situation, where the balance had swung to Pakistan as a winner and he took England home with some good blows.
"Pakistan is not far away. They have three good points.
"If their fielding can come to a reasonable standard – some of the fumbles were not even amateurish – I've seen enough to threaten many teams in the World Cup."
"Bowlers made brilliant … 340 wasn't a massive point"
England captain Jos Buttler at TMS: "It was a very good victory. For the great majority of the game we were very good.
"We had a really bad pair of excess with the bat which is a disappointment but for Ben Stokes to be there at the end we had a good cooperation with Tom Curran was good for us.
"I think the bowls brilliantly today. 340, as stupid as it sounds, were some under what we could have chased after Pakistan started well. We've seen the point of getting higher and higher. 340 wasn't a massive score to hunt today.
"The [final World Cup squad] is a really tough decision for the guys to do, but what is good for us are guys who are up. Tom Curran had a fantastic all-round day today. "