look at the underside of relay box cover. legend for what's in the box is there.
I'm guessing its the solenoid on the valve body causing your issue. that gov solenoid was known for issues in certain years.
Oh just thought of 1 other thing
There is a spring on the valve body, has a cover over it with 2 bolts, a "3-4 shift spring". I've . found a few of those busted over the years. Including on my own 96 Dakota 4wd back when I rebuilt that trans 70k miles ago.