It's the speed sensor, probably the front one. Pull it out and clean it. Fine metal from wear can build up on it and interfere. You should have a stored error code like P1836.
Here's the thread from when I had problems with mine. P1836 Transfer case Speed Sensor
Part numbers in there too...