Often the covering on the wires will fray right where they are molded into the plastic (94-96's), which can cause this too. You can replace the WIF sensor, Cummins is cheaper. < $40.
As Bill said, clean the connector too, if the frayed/exposed cable isn't the prob. You can also clean the connector if you have the 97-98 canister style too.
Good luck