I'm vicente I work in an engine manufacturing plant.
The oldest engines use natural forces, with little or no added technology: engines using pressure (sail, windmill); engines using elastic (bow, crossbow, torsion catapult, spring clock); engines using gravity (paddle wheel on watercourse or water reserve, clepsydra, counterweight catapult, weight spinner, weight clock).
The first engine that is truly independent of nature, adaptable to any situation, is the steam engine. This engine is based on a boiler producing water vapour through a heat source, usually combustion. Compressed steam is used, during its expansion, to move a piston in a cylinder. This translational movement is then transformed into rotation by a connecting rod and crank system. The rotation of the shaft, stabilized by a flywheel, which regulates the speed of rotation, finally drives a machine or wheels, via a transmission mechanism.
At the end of the 19th century, the internal combustion engine, which produces energy directly during the rapid combustion of a fuel/fuel mixture, was developed and adapted to the first automobiles. This engine is, like the steam engine, equipped with connecting rods and pistons, with the exception of the Wankel engine which has no connecting rods, but rotary pistons; however, the production of energy takes place at the very place where the work is produced, hence the name internal combustion engine. Since then, it has continued to make progress in terms of performance and adapting to the requirements of pollution control standards.
In the middle of the 20th century, in view of the growing need for power to propel military aircraft, jet engines were actively developed, particularly during the Second World War, in parallel with rocket engines for missiles. As these two families of engines have unrivalled weight/power (or power-to-weight) ratios, despite their rather low efficiency, in the 21st century they are still actively developed to power aircraft and rockets.