Today's "Daily Telegraph" (2020-05-13 pp57) has a historical feature about Edison, which describes an electric Garden railway built in 1880. There is a picture of this loco and a train of carriages.
He worked for "Edison General Electric" company, renamed "General Electric" after Edison and the company has a falling out. GE still builds locomotives.
Bill Gates of Microsoft fame owns $US2b of shares in Canadian National railways.
Warren Buffett owns all of BNSF railroad.
Andrew Carnegie made a fortune in railroads (See https://en.wikipedia.org/wiki/Andrew_Carnegie ). Because railways use a lot of steel, Canegie made an even bigger fortune in the Iron and Steel business.
There would be others.