Steam locomotives are still used on tourist and heritage railways, just not in revenue service anymore. (An exception being a single railway in Bosnia that still uses WW2-era German steam locomotives.)
Or for a similar but entirely different example, the Iowa Traction Railroad uses almost exclusively century old electric locomotives all built in the 1910s and 1920s. You can see here one of their electric locomotives posing with a much newer locomotive: