1996 jeep grand cherokee

1996-jeep-grand-cherokee
While driving my jeep it will jump out of gear, do not know if its shifting into in overdrive of not. I have to pull over and work the 4wheel gear in order for the manual drive to engage any idea what might be causing this.
Thanks,
Linda