England held on for a consolation victory in the third Twenty20 against India despite Suryakumar Yadav’s sensational century at Trent Bridge.

Chasing 216, the tourists were 31-3 after five overs before Suryakumar’s 48-ball ton – his first for India – gave them real hope.

He dominated a partnership of 119 with Shreyas Iyer, hitting 14 fours and six sixes in an incredible display of flamboyant shots.

After wickets tumbled at the other end, Suryakumar launched an assault at the start of the penultimate over with 41 runs needed.

The first four balls yielded 16 runs but the 31-year-old mistimed his stroke looking to clear the ropes again and was caught at long-off for 117 off Moeen Ali.

Chris Jordan closed out the final over as India ended on 198-9, England winning by 17 runs and responding to heavy defeats in the first two matches.

Dawid Malan had earlier top scored with 77 from 39 balls in their 215-7.

India take the series 2-1 with the sides’ attention turning to a three-match one-day international series, which starts on Tuesday at The Oval.

England needed this win after their disappointing performances in the first two games. With India needing 185 from 15 overs and Rohit Sharma, Virat Kohli and Rishabh Pant back in the dressing room, the hosts looked comfortable.

What followed was anything but – Suryakumar playing one of the great innings in a losing cause.

The right-hander, often referred to by his nickname SKY, wristily took down both spin and seam. Two drives where he opened the bat face and cleared the off-side for six defied belief.

He also swept Jordan off his stumps as he took advantage of the short Trent Bridge boundaries.

The first crucial moment came at the start of the 16th over when, with 66 needed from 30, the impressive Reece Topley had Iyer caught behind for 28.

That halted India’s momentum and the wickets of Dinesh Karthik and Ravindra Jadeja, both lbw to David Willey and Richard Gleeson respectively, left the match on Suryakumar’s shoulders.

Moeen began the 19th over with a wide before Suryakumar cut him for four, smashed a six over long-on and hammered another cut to the fence.

India’s support was raucous but when Moeen tossed the ball up again, Suryakumar was caught after miscuing off the toe of his bat. He departed with the second-highest T20 score for India and the second-best individual total against England.

Jordan was left with 20 to defend against the tail and he did so expertly, taking wickets with two pinpoint yorkers.

England won but were given an almighty fright.

After batting failures cost England in the first two games, Malan’s knock powered England on in a much-improved performance, albeit against an inexperienced attack.

After getting through the first over unscathed for the first time in the series, captain Jos Buttler chopped on for 18, Jason Roy nicked behind for an uncontrolled 27 from 26 and Phil Salt, brought in at number four to strengthen the batting, was bowled by a slow yorker from seamer Harshal Patel, leaving England teetering at 84-3.

Malan too had a stuttering start. He chipped a drive back to Harshal in his follow-through on four only to be dropped and also could have been caught at extra cover early on.

But after finding his range he powered on, lifting the spinners over the leg side and crashing the seamers through the off.

He combined with Liam Livingstone, who ended 42 not out, for a stand of 84, which capitalised on India resting Jasprit Bumrah and Bhuvneshwar Kumar and replacing them with seamers Umran Malik and Avesh Khan.

Malan’s knock – his first fifty in 11 T20 innings – was timely with the T20 World Cup three months away.

He fell top-edging a sweep off leg-spinner Ravi Bishnoi in the 17th over, and Moeen Ali departed for a duck in the same fashion two balls later. But Harry Brook’s cameo of 19 from nine balls ensured England’s innings did not fall away.

Credit goes too to Topley, whose three wickets cost just 22 runs in India’s chase.