Very simply put, the steam locomotive is marvelous invention using basic physics to move tons of steel! No transmission needed. All direct drive using the H2O turned in to steam with a valves, pistons and driving rods……and that’s it.
Although various types of valves have been used throughout the years, the principal remains basically the same.
In a reciprocating steam ...
Source: Train Fanatics