The muscles harness the energy from the food that is, the chemical energy and convert it into the ATP (adenosine triphosphate) which is also a chemical energy.
The ATP are then used by the muscles as the source of energy for the movements such as locomotion that is, mechanical energy.