Kagiso Rabada missed the Trent Bridge Test due to disciplinary reasons but South Africa won the match by 340 runs to level the series against England.