Carbohydrates are energy giving foods. The sugar and flour contained in cakes are a source of carbohydrates. They give our bodies the energy they require to function. Sugar is also a great carbohydrate in providing energy to the brain, muscles and the nervous system. This is why glucose is given to athletes. Fats also contained in cakes are a good source of energy.