A motor is a device that transforms electric energy into mechanical work while an engine is a device that transforms the thermal energy of the fuel into useful work.