The problem with the transfer case can be caused by the encoder motor / transfer case motor loosing power, the transfer case engagement switch failing or loosing power, the vacuum
actuator under battery tray loosing vacuum, the vacuum actuator valve...