The process in which living organisms build complex substances, such as tissues, from simpler ones while storing energy.