What is the Difference between electric generator and electric motor?

Generator is the device that generates electricity. Motor is a rotating device using electricity