Railway lines are blocked and some services have been halted after the breakdown at Mickefield, near Leeds.
Services towards York are expected to be disrupted until around 10am today (Monday).
A spokesperson for rail operator Northern said: "Staff are currently on site working to resolve the issue."