The railway line between Birmingham and Wolverhampton had been closed while emergency services were at the scene