The function of commutator ring in an electric motor is to reverse the direction of current flowing through the coil every time coil just passes the vertical position during a revolution. Hence as the direction of the current is reversed, the torque is changed in the direction. Commutators and brushes are used on all DC generators and DC motors.