What is the basic difference between an electric generator and an electric motor?

what is your thinking on this?