Early kinds of engine used heat that was outside of the engine itself to heat up a gas to a high pressure. This was usually steam and the engines are called steam engines. The steam was piped to the engine where it pushed on pistons to bring about motion. These engines were commonly used in old factories, boats and trains.