Steam trains
On February 21, 1804, British mining engineer, inventor and explorer Richard Trevithick debuted the first full-scale working railway steam locomotive in the Welsh mining town of Merthyr Tydfil. Following that debut, locomotives have been powered by a myriad of fuels, including wood and coal.
For more information, you could try searching google or wikipedia
The transition from steam to diesel took from 1949 to 1971. In 1954 NZR had 647 steam locomotives, compared to 71 diesel and electric machines. In 1965 there were still 317 steam locomotives, but more than 350 diesels (including 159 mainline diesel-electrics), 50 railcars and 28 electrics.
For more information, you could try searching google or wikipedia