It's more than you need to do.
Shift into 4wd, maybe move the truck slightly so the gears get into place.
Lift up one front wheel.
If you can't spin the wheel, you are in 4wd.
If you can spin the wheel, something isn't working right.
Reach under the truck and try spinning the front driveshaft with your hand. If you can spin it, there's a problem in the transfer case, Encoder may have failed if it's electric shift, chain broken are common things, but it could be other stuff.
If front driveshaft doesn't spin, then the problem is in the front diff. Unscrew the actuator in the front diff (put the vehicle up on jackstands for this). With the actuator removed, plug it back into the wiring harness, and see if it goes in/out as someone shifts in/out of 4wd.
If the actuator does go in/out,then something is broken inside the front diff, likely the passenger side stub axle or the locking ring (this is what the actuator moves).
If the actuator doesn't go in/out, then it could be the actuator, or a wiring/connector problem, or the sensor on the transfer case that isn't working.
Diagnose, then replace/fix what's broken instead of just throwing parts at the truck.