Could also be the throttle position sensor on the injection pump. If it is *way* out of wack, it will think that you are already at WOT, and will not shift into a lower gear. I had an ambulance with an intermittent O/D light flashing and horrible shift problems, and it turned out to be a loose TPS sensor plug.
Good luck.
Eli Benson