The correct answer is B. Motor.
A motor is a machine that converts electrical energy into mechanical energy. It works by using the interaction between a magnetic field and an electric current to generate a rotating force, which can then be used to power a variety of mechanical devices such as pumps, compressors, or machinery.
A generator, on the other hand, is a machine that converts mechanical energy into electrical energy. It works by using a rotating magnetic field to induce an electrical current in a wire coil, which can then be harnessed as electrical power.
Electricity is a form of energy that is carried by the movement of electric charges, and is used to power a wide variety of devices and machines, including motors and generators.