A series of chemical reactions that produce ATP from the breakdown of carbohydrates, fats, and proteins.