Generation and transmission of energy

Where are the energy losses in the generation and transmission of energy