Electrical energy is released from the battery which converts stored chemical energy into electrical energy. The steam created from the thermal energy turns the wheels. That depends on how the electrical energy is generated. Electricity from a variety of sources are connected to the electrical grid and can power your toaster.
I would say this is mostly true. In the locomotive the chemical energy is burned thermal energy. There are so many different forms of energy that I cannot explain how they can all be traced back to the Sun, but I will use two examples. These move generators, that convert the potential energy into electrical energy. James Suhr, Agent, Arlington, TX. Mechanical energy to make the locomotive move. It extends from the southern parts of the Pacific, Atlantic, and Indian Ocean bodies. Aside from that - pretty much all of life depends on. One exception is nuclear energy which traces its roots back to a star but not our sun. In this battery-powered alarm clock, the hands move and an alarm rings when its time to wake up.