England have won the third and final One Day International in their series against South Africa, leveling the series overall at 1-1.