The chemical reactions that occur within the cells, tissues, or an organism. These processes include both the biosynthesis (ANABOLISM) and the breakdown (CATABOLISM) of organic materials utilized by the living organism.