If its 4x4 the output speed sensor is on the top of the transfer case. Pull it out and stick your pinky in the hole to see if that wheel is loose. Could be broke if it was shocked hard. Input is the front most sensor on top of the trans. Did you check your fluid level also? I guess you would have a different code if that were the case.