Sugars, starches, fats, proteins.
Vegetables and meats are not types of food molecules but rather, specific food molecules.
it decomposes things and erosion of mineral
Because to actually use the word evolve an organism must suffice more than one condition, which in this case would be an advantageous trait. Having an advantageous trait (from our eyes at least) must also include the right and stimulating enviironment for procreation. So this answer is multifolded.
The function of a protein is determined by its shape. The shape of a protein is determined by its primary structure (sequence of amino acids). The sequence of amino acids in a protein is determined by the sequence of nucleotides in the gene (DNA) encoding it.