If only an external force can change the state of motion of the C.M. of a body, how does it happen that internal force of brakes can bring a vehicle to rest?

The internal force of brakes converts, the rolling friction into sliding friction when brakes are applied, wheels stop rotating, when they slide, the force of friction comes into play and stops the vehicle. It is an external force