England in charge after MacDonald-Gay sparks South Africa collapse