The codes will have to be read using a scan tool while everything is hooked up. Most shops and all dealers will have the scanner needed to read 4wd codes. If you want my best guess over the internet I say you have a bad shift motor, its located on the back of the transfercase under the truck I replace these 6 to 1 over modules but a code scan should tell . ps check your private mail.
PLEASE -Remember that your Expert will not be paid until you accept an answer and complete the process. Please leave "FEED BACK".