Differences b/w an motor n an electromagnet r :
1- motor is a device which converts electrical energy into mechanical energy while an electromagnet is just a combination of a soft iron core + solenoid....
2- electromagnets r strong temporary magnets while motors don't behave like a magnet