Chris Woakes hit the winning runs as the hosts pulled the series back to 2-1.
Harry Brook made a superb 75 but Woakes and Mark Wood, both recalled for the third test at Headingley, kept their nerve to put on an unbeaten 21-run stand.
Needing 251 to win the match and keep the series alive at 2-1, the hosts reached 153 for four at lunch. Brook was playing forcefully on 40 not out, having swapped his spot at number three for his favoured position of five, with Stokes new to the crease on seven.
Mitchell Starc then removed both Stokes and Jonny Bairstow in close succession to arguably put Australia in the ascendancy.
England’s openers came out in cautious mood at 27 without loss, adding 15 careful runs to the score before Ben Duckett was trapped in the crease by Mitchell Starc, lbw to a ball destined for leg stump.
Moeen Ali was the man to replace Duckett at three, a surprise switch with Brook and a hefty promotion from number seven. The all-rounder has done the job before, but last appeared at first drop in November 2018.
It was a typically bold gambit from the Brendon McCullum regime but one that did not pay off.
Moeen made five from 15 deliveries and had no answer for a 90mph rocket from Starc, forcing its way through a modest drive and pounding the stumps.
If that dismissal raised any nerves around the ground, the arrival of their primary insurance policy, Root, should have settled them. Instead, he made an unusually skittish start.
He chased his first ball well wide of off stump on a hiding to nothing and was fortunate to hit fresh air.
Moments later he demanded a quick two off Zak Crawley’s bat and almost opened up a run out chance having yet to open his account.
When he did get off the mark it was in classical fashion, stroking a cover drive to the ropes to offer the crowd a much-needed release after one boundary in the first 45 minutes.
That stroke, combined with a change of bowling, appeared to break the rhythm and the runs began to flow.
Not all of them were intentional, Crawley carving Scott Boland over the cordon and Root nicking four low past second slip, but Crawley also pinged Mitch Marsh for a pair of authoritative blows through point.
Crawley’s growing confidence cost him his wicket on 44, throwing himself into a drive off Marsh and feeding the edge through to Alex Carey.
At 93 for three, both teams were moving towards their destinations and the balance of power was impossible to tell.
Brook set about nudging things in England’s favour, taking on Boland’s natural length and collecting three quick boundaries out the middle of the bat.
A stand of 38 with Root was beginning to give the chase a sense of security, but the latter was undone unexpectedly with the lunch break in sight.
Swivelling into a pull as the returning Cummins dragged one down, he gloved it through to the keeper for a tame end on 21.
Published: by Radio NewsHub