A battery changes its form of energy many times throughout the process of charging it. It comes out of the wall as electrical energy and then goes into the battery and changes into stored chemical energy. The stored chemical energy in a battery turns into electrical energy. Then Light and heat energy if you hook it up to a light bulb. If you hook it up to a motor it becomes mechanical energy. That is how enrgey transfers and transforms.