Mark Wood followed his entertaining knock of 35 with three huge wickets as England dominated South Africa on day two of the final Test between the sides.