The processes by which the body produces energy for physical activity, such as aerobic and anaerobic respiration.