The device which converts the chemical energy into electrical energy?

Electrical motor

Generator

Battery

Steam engine