Which is the correct description of the function of a motor

A motor is a device that converts electrical energy into mechanical energy, causing movement or rotation in a machine or equipment.