Once seen as an outdated mode of transport, demand for rail travel is making a comeback.