Answer:
In an internal combustion engine, heat flow into a gas causes it to expand.
The application of direct force to specific parts of the engine will produce expansion of the high-temperature and high-pressure gases. Which will transform the chemical energy from the fuel (such as gasoline or oil) into mechanical energy.