99 GMC Jimmy 4x4 problem

Ok, I have a problem with my truck, the Transfer case control module keeps dying on me I've replaced it once with a salvage yard one, for some reason
it will work about two weeks than it just goes out again. when it goes out, I have no lights on the dash and I dont hear it click when I turn on the ignition switch. I talked to someone they told me my encoder motor could be bad, how could I tell that?? When the 4x4 did work it shifted fine in and out of all ranges. I have the NP8 transfer case.

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.