I'm no expert on this subject by any means, but I happen to volunteer at a museum where we have steam trains running. We build our tracks to look traditional, so we use wooden sleepers and no ballast. Most of our sleepers are donated from the commercial railroad companies, typically they are old stock but we also receive used ones occasionally. In my part of the world wooden sleepers aren't common anymore, so it's getting harder to find usable ones. This is a concern for us, as apaearantly there aren't any suppliers left in our part of the world for new ones. At our museum they typically last for about 15 years, mainly because we place our sleepers directly on the soil (no balast). The tar/oils will eventually dry out and the wood will just rot/decompose naturally. Wooden sleepers are considered chemical waste in my part of the world, though I do believe we are allowed to let them decompose fully as biomatter, which goes quite quick if in contact with moist soil. Though we typically dispose our used sleepers at a specialized waste facility, I'm not sure how they process it there.
Oh, and in case you are wondering: no, they don't burn, so we can't use them as firewoord for our steam engines ;-)
Appearantly in the USA, at least as of 2008, around 90% of all track was still using wood [1]. I didn't expect that. For most of the world we have used concrete sleepers for a long time already. Plastic sleepers are also common nowadays, which are typically made from recycled materials.
[0] https://en.wikipedia.org/wiki/Creosote [1] https://en.wikipedia.org/wiki/Railroad_tie
This is for a few reasons, but the two primary ones are that wood is very cheap and plentiful in the US compared to most of the rest of the world, and we haven't banned creosote in the US like most of the rest of the world, so creosote treated wood is still the most common type of railroad tie.
Like everything else there's probably some 2nd/3rd order consequence of regulatory perversion that prevents it. Like because of the circumstances it wrongly gets classified as hazmat or something.
Same with telephone poles.
IIUC, they replace them with plastics since the plastic is seemingly more ecologically friendly and easier to recycle.
Mind concrete sleepers are what's used these days. You'll find wood only in shunting or cargo yards. (Or museums. Or the US - see linked commen by LeonM).
Source: I randomly met someone involved with that project. A proper train enthusiast can probably elaborate here, but I think I remember the core idea correctly. Also this obviously doesn't necessarily hold globally, though I can imagine many track operators face similar challenges.
Edit: While I wrote the above, LeonM wrote a nice reply on a sibling comment - https://news.ycombinator.com/item?id=44028161