How does a steam engine work?:
A fire where the coal burns. A boiler full of water that the fire heats up to make steam. A cylinder and piston, rather like a bicycle pump but much bigger. Steam from the boiler is piped into the cylinder, causing the piston to move first one way then the other.