After making 58 in Pakistan's first innings, Babar Azam reached 34 not out at tea on day three of the second Test with SA in Cape Town.