(a) In a D.C. electric motor, the reversing of current in the coil is repeated after every half rotation. This causes the coil to continue its rotation as long as the current from the battery is passed through it. The rotating coil can drive a machine connected to it.
(b) A commutator (split rings) reverses the current.