a steam locomotive uses wood, coal or oil (but mostly coal) as fuel to heat water in a boiler, which turns into steam which pushes pistons to power the train. steam locomotives were invented in the early 19th century. they are not widely used any more due to their operational costs, especially the fuel costs; steam locomotives are now mostly only used on tourist railroads.