Let us take the example of thermal power plant to understand this. First of all, heat energy is utilized to make steam from water. Movement of steam is utilized to turn the turbine to produce electricity. Some of the energy is dissipated while converting water into steam. Some energy is dissipated in the form of heat when turbine moves. During transmission of electricity through wires some energy is dissipated in the form of heat due to heating effect of electric current.