BEN Stokes cashed in on his remarkable early fortune with a century against South Africa that won England an Ageas Bowl thriller.

Stokes’ 101 helped England to make 330-6 and the Proteas closed on 328-5 after a brilliant last over from Mark Wood, which began with only seven required.

Half-centuries from Quinton de Kock (98), David Miller (71no) and AB de Villiers (52), and some late big hitting from Chris Morris, then took South Africa to the brink of a series-levelling victory.

But defending seven runs from the last over, Mark Wood held his nerve to restrict the tourists to 328-5 and spare England the bother of a series decider at Lord's on Monday.

Stokes, cleared to play here after a knee injury scare in the series opener, was dropped first and second ball before going on to equal his career-best 101, hitting 11 fours and three sixes from 79 balls.

There were some typically brutal blows among them - all a far cry from two tentative edges on the forward-defence on nought and four, with ODI debutant spinner Keshav Maharaj the unlucky bowler.

On a day of six dropped catches by South Africa, it was Stokes who made them pay most heavily with his second one-day international hundred, along with Jos Buttler's 46-ball 50 and telling runs too from Eoin Morgan.

After England had been put in under heavy cloud cover, Jason Roy's lean run continued when he aimed across the line to Kagiso Rabada's extra pace and was bowled off-stump by a full-length 93mph delivery.

Alex Hales had just been dropped at long-on off Maharaj when he edged an attempted cut behind to De Kock, standing up to Dwaine Pretorius' medium-pace.

Joe Root batted with great confidence but was then cut off in his prime, run out backing up after Pretorious deflected a straight drive on to the stumps at the non-striker's end.

Maharaj endured three off the dropped catches off his bowling, Stokes badly put down first by Hashim Amla at slip and then by De Kock.

Morgan lived dangerously too, escaping half-chances for caught-and-bowled by Pretorious and caught-behind off Andile Phehlukwayo on 16 and 22, and a direct hit from cover would have run him out on 24.

The fourth-wicket partnership was worth 95 by the time De Kock did gather a low catch off the returning Rabada in the 33rd over.

Stokes completed his hundred with a scampered two, only to hole out at long-off soon afterwards, giving Maharaj a wicket at last in his final over.

Buttler (65no), who had a close umpire's call for lbw on eight, went on to hit four of five fours in one over off Phehlukwayo as he and Moeen Ali took England's predictable big finish to 111 in the last 10.

Stokes is box-office unmissable in all disciplines and, as England's first change, immediately proved it again as soon as he got the ball in his hands.

With his first delivery, he might have had opener De Kock caught-and-bowled for 28 had he clung on one-handed to a very sharp return chance; then before his first over was done, he instead had Amla driving low to cover where Morgan was safe.

Faf du Plessis tried to steer off-side runs off Liam Plunkett (three for 64) but managed only to edge behind.

Morgan then needed to summon pace again for a much-needed wicket after De Villiers had joined De Kock in another significant stand. And it was Plunkett who did the trick a second time, with a short ball which followed the South Africa captain as he tried to leave and ran over his glove for a second caught-behind.

When De Kock got a faint edge behind off Moeen the pressure was right back on South Africa's chase.

But Miller responded with a fine half-century from just 34 balls, and even as the run-rate moved above 10-an-over, he found a new ally in the big-hitting Morris.

Stokes was not asked to add to his three overs for 12 runs, and it seemed England might succumb without him when South Africa narrowed the challenge to 10 needed from 10 balls.

But only singles followed as Miller and Morris ran out of steam.

The 658 runs at The Ageas Bowl today make this the highest-scoring of the ground's 21 one-day internationals.

Only New Zealand, who made 359-3 in 2013, have scored more in an Ageas Bowl ODI than either side. 

South Africa bowling: Rabada 10-0-50-2, Morris 10-0-66-0, Pretorius 10-0-61-1, Maharaj 10-0-72-1, Phehlukwayo 10-1-74-1

England bowling: Wood 10-0-48-0, Ball 10-0-81-0, Stokes 3-0-12-1, Plunkett 10-0-64-3, Rashid 6-0-41-0, Moeen Ali 8-0-59-1, Root 3-0-18-.6