Mark Wood took two vital wickets after England forced South Africa to follow on on day four of the third Test between the two sides.