The TOD receives its axle speed inputs from two VSSs (vehicle speed sensors).

Start looking there. Many have had intermittant TOD operation after submerging these sensors.

Also, what is the worm drive that you mentioned?