How foods are the source of energy?

food contain nutritions and vitamins which your body turns into energy...no idea how the body does it,though