The vehicle came to rest upside down on a line in Salford, Greater Manchester, affecting services to Liverpool.