The energy stored in gasoline is released by burning it (combustion). During combustion, chemical bonds are broken and reformed (changing gasoline into byproducts such as water and carbon dioxide) releasing energy. There are many examples of chemical potential energy being converted to kinetic energy to do work.