Electric motors are used to transfer electric current into mechanical energy. When electrical current produces a difference in charge, it produces electrical force. Electrical energy that has been stored is used to produce an electro magnet due to a difference in charge. The magnetic poles of the magnet are forced to repel one another and produce mechanical energy from electrical current.
Electric cars use stored electrical energy to produce mechanical energy.