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.

BTS Skytrain EMU-A2
Bangkok MRT Blue Line
LB&SCR B1 Gladstone
BR Class 05 D2595
BR Class 08 Phantom
BR Class 92
English Electric DP1 Deltic
B&O No. 147 Thatcher Perkins
B&O No. 57 Memnon
DHR Class B
EIR No. 22 Fairy Queen