「(電車が)廃線になった」は
The train from A to B was discontinued.
The train stopped running from A to B.
のように表現できます。
例:
The train from Yokokawa to Karuizawa was discontinued in 1997 because of the new Shinkansen line that opened.
「新しい新幹線が開通したため、横川、軽井沢間は1997年に廃線になった。」
ご参考まで!