How does it move, and what is its job?
Steam pushes pistons, and connecting rods turn the driving wheels.
The wheels grip the rails to move the train. Passenger engines and small yard engines have different jobs: maximum speed is not the only measure of a good locomotive.

B&O No. 57 Memnon
Flying Scotsman
EIR No. 22 Fairy Queen
Amtrak ALC-42 Charger
B&A GE 70-ton switcher
B&O Bo Switcher
B&O F7 / MARC 7100
DHR Class B
FR Prince
LB&SCR B1 Gladstone
LNER A4 Mallard