Your '99 has the Pulse Vacuum Hublock (PVH) 4x4 engagement system. This thread pretty much has everything you want to know about the PVH system in it:
https://www.ford-trucks.com/forums/s...d.php?t=113363
Here are some diagnostic steps you can follow:
Ranger Pulse Vacuum Hublock Diagnosis & Testing