Complex sentence: However, when that was then switched to road traffic the line closed and lay idle for a number of years.
Split into simpler sentences: However, when this was then switched to road traffic the line closed. The line then lay idle for a number of years.