。
The train was running westward.
Literal
Train [topic-は] west [to-へ] was-running.
へ marks direction of motion ('toward the west'). 走っていた is the past continuous — 'was running,' ongoing in the past. Directional へ is nearly interchangeable with に, but へ emphasizes the direction/route rather than the final destination.