the fire in the fire box warms up the water to make steam to move the pistons so the train moves.
the tender carry's coal and water for the boiler and fire box.
a funnel is so any extra steam can exit.
a train has buffers so that when it hits something the driver wont feel anything