You mean like Amtrak?
No, I mean the ones that make a profit every year despite having to build and maintain their own infrastructure. You know, like Burlington Northern Santa Fe and Union Pacific. Every mile of track, every signal, and every switchyard the railroads use is paid for out of their investors' pocket. Meanwhile, the motor freight industry rides on government-owned and maintained highways and the airlines fly from government-owned airport to government-owned airport using government-owned navigational systems.
Railroads (including passenger rail) are a strategic necessity and vital for national defense. While the government has no business running a railroad directly, it is the government's responsibility to maintain a modern rail infrastructure just as it maintains modern ports, freeways, and airports.