Afghanistan has three railways in the north of the country. One line into Uzbekistan and two lines into Turkmenistan. No passenger service and a lot of the equipment originated in the Soviet Union.
Railway Gazette reports that some trains are still in operation despite the takeover by the Taliban.
https://www.railwaygazette.com/policy/some-trains-still-running-amid-taliban-takeover/59767.article?ID=z9xqh~qhnqzx~jnnxt~W4ik~Ky0gk&utm_campaign=RG-WEEKLY-NOKIA-270821-DE&utm_medium=email&utm_source=email&utm_content=newsletter
“Newly-appointed head of the Ministry of Public Works Rumi Bakht-ur-Rehman Sharafat held an initial meeting with ministry staff and the Afghanistan Railway Authority on August 21 following the Taliban’s takeover of the country.
“The acting minister said the Taliban leadership was committed to the rehabilitation of the transport infrastructure, technical staff were still required and salaries would be paid. Pictures shared on social media show various road construction works underway.”