A device which converts electrical energy into mechanical energy is called:

D.C motor

A.C generator

Transformer

D.C generator