An unbroken stand of 76 between Ben Stokes and Ollie Pope gives England a slight edge over South Africa at the end of a fluctuating first day of the third Test in Port Elizabeth.