Cummins interview question

Difference between engine and a motor.