Macromolecules such as nucleic acids, lipids, proteins, and carbohydrates each play distinct and crucial roles in biological systems. Nucleic acids, composed of nucleotides, are responsible for storing and transmitting hereditary information, with DNA and RNA being prime examples.