Ben Stokes was named man-of-the-match as England took a 2-1 series lead against South Africa.

And the Cumbrian said he was delighted with the way the Three Lions had bounced back after their comprehensive beating in the second Test.

Stokes’ role was vital as England notched up a 239-run success at The Oval in the third game of the four-match series.

But it was spinner Moeen Ali who finished off the match in dramatic style, claiming a hat-trick to pick up the last three South Africa wickets.

On Moeen’s hat-trick, which had to be referred to the third umpire after an lbw appeal was initially turned down, Stokes said: “I can’t believe it didn’t get given out!

“It was a dramatic ending to a pretty dramatic day.

“Credit to Dean Elgar with the innings he played. It was a really gutsy hundred, we were glad to see the back of him. But it was a great way to end the Test match with the hat-trick. Congrats to Mo.”

Stokes was named man-of-the-match for his first-innings 112, and he admitted he had to rein in his natural attacking instincts on the first day.

“I had to work pretty hard, especially early on,” he said.

“There were some difficult periods, with the wicket offering a bit, particularly for Vernon Philander - I lost count of how many times he beat the bat.

“It’s pleasing to get through those hard times and then be able to express yourself towards the end.”

Joe Root praised England’s character after his side produced a remarkable turnaround.

A damaging defeat at Trent Bridge raised questions over England’s approach to Test cricket, but Ali’s hat-trick completed a stunning victory in the 100th Test at the Oval.

It was a near-perfect performance from Root’s side, and the captain was impressed with the comeback.

He told Sky Sports: “What a way to celebrate the 100th Test at this ground.

"It has been a great week for us - the way we batted in the first innings was so important, we found a really good tempo and it’s a good benchmark for us going forward.

“We got stuck in and posted a very good score on a challenging wicket. The way we then bowled first up was exceptional and, from there, we always felt we were ahead of the game.”

Losing captain Faf du Plessis added: “It’s obvious to say that Vernon Philander missing out for us in that first innings was a huge moment in the game. The conditions at that time needed someone like him, an expert in challenging the batsmen.

“To allow England 350 in that first innings was probably about 100 too many, but you have to also give credit to the way England played.”