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.

Flying Scotsman
LB&SCR B1 Gladstone
DHR Class B
DB VT 11.5
DR Class 243
DR E04
DR V100
B&O No. 147 Thatcher Perkins
B&O No. 57 Memnon
EIR No. 22 Fairy Queen
FR Prince