Earlier, off-spinner Ali took an ODI best four for 46 as England, the number one-ranked side in this format, dismissed world champions Australia, who won the toss, for 205 inside 35 overs.
Earlier, Australia clicked into nearly T20 mode with Aaron Finch and Travis Head roaring past 50 after 4.5 overs.
It took England just four balls to lose their first wicket when the in-form Jason Roy, fresh from his 101 in the fourth ODI at Chester-le-Street on Thursday, was bowled attempting a big hit off left-arm spinner Ashton Agar.
Alex Carey and D'Arcy Short combined to put on 59 but Curran returned to dismiss the former before Australia had reached the halfway stage of their innings.
Marcus Stoinis appears horribly out of nick and did not trouble the scorers as he swept Moeen straight to Ball at fine-leg two balls later.
Head compiled a 36-ball fifty, including eight fours but again fell soon afterwards when he chipped fast bowler Liam Plunkett to Morgan at short midwicket.
Jos Buttler celebrates after hitting the winning runs.
"With bat, ball and in the field during this series, we've just folded a little bit".
Stanlake then bowled Jonny Bairstow (12) and had Test skipper Joe Root (one) well caught at slip by Shaun Marsh.
Alex Hales and Buttler looked to rebuild the innings but Hales, who smashed 147 in England's world-record 481 at Trent Bridge, edged Kane Richardson behind for 20.
When Stanlake was bowled by Ali it meant England were denied the chance to make the 263 runs they had needed to break the record for the most runs ever scored by one team in a five-match ODI series - their own 1,617 in a 3-2 success at home to New Zealand in 2015. Catch England vs Australia Live Cricket Score 5th ODI from Manchester here.
But Buttler held firm and found support from Rashid before he was caught in the deep off the bowling of Stoinis. Jake Ball came in as No. 11 and defended successfully as Buttler hit the winning runs in the series finale. They are nearly the more enjoyable ones.