Disconnect the transfercase motor harness, clean all the leads with spray on electronics cleaner, put some dielectric grease on it and plug it back in.

If the code comes back there's a few other things you can check with a multimeter.