Answer: The correct answer is "electric motor".
Step-by-step explanation:
Electric motor is the device which converts the electrical energy into the mechanical energy.
When the current is flowing through the wire then there will be magnetic field around the wire. The current flowing wire can be used to move the magnets.
Electricity can be used to move magnet which are then used to work. The electric motor uses electricity in this way. It generates the magnetic field with the electric current through the coil. This magnetic field moves the magnet that runs the motor.
Therefore, the correct option is (D).