What is the working of DC motor.