A major emergency response is under way after a train derailed near a busy UK station.