Most food is a combination of carbohydrates (starches and sugars), fats, and proteins, all of which are necessary to make you work. Different parts of the digestive system are designed to absorb each of these into the body.
Look up "digestion" or "digestive processes" in your favourite encyclopaedia!