We are 18 months into war, but electric grid and rail network are still functional. You can go to Kiev for weekend break from Poland in overnight train...
They are still functional, because of the heroic defense by the Ukrainian people and quick rebuilding. Russia was explicitly targeting and quite a lot destroying the Ukraine electric infrastructure. Unfortunately it looks like they are stockpiling rockets to repeat those attacks in this winter.
A strong support by the west also helped Ukraine to fight back a lot.