Electrical machine is a Device which converts any form of Energy ( Mehcanical or Electrical ) into Electrical Energy and vice versa.
Three major types of Electrical Machines are Motors, Generators and Transformers.
Motor is an Electric Machine that converts Electrical Energy into Mechanical Energy
There are two major types of Electric motors:
1) AC Motors
2) DC Motors