The main function of vitamins is to enable chemical reactions to occur in the body, some of which release the energy trapped in carbohydrates, lipids, and proteins. Minerals play key roles in the nervous system, skeletal system, and water balance but yield no energy to the body.