in a motor, what do the combined effect of electric currents and magnetic forced turn electrical energy into?

mechanical energy

a battery

electromagnetic energy

a generator

(please explain too)