The decomposition or transformation of an organic substrate to yield energy for use by the organism or organisms.