if you have a kettle and you fill it up with water, when you turn it on, electrical energy from the plug socket flows to the heating element of the kettle where its transferred electrically to the thermal energy store which means the flow of electricity warms the metal heating element. The heating element then transfers the energy to the waters thermal energy store.