89 Jeep Wrangler

To engage the four wheel drive I have to unplug the outer vacume line on the axle shift motor, then plug it back in. What is my problem? Is it the shift motor or something else? I have to do this in low or high 4wheel. Thanks, Big E