Transmission no 1st, 4th or OD

We just bought a 2003 2wd Jeep Liberty Sport with 185,000 miles on it. It will not go into 1st gear taking off (even if you put it in 1 on the shifter) and will not go into 4th or over drive (the od light does not light up when you press the button). However, every once in a while after the car sits a few days (we dont drive it every day) when you take off everything is fine until you turn sharp or hit a bump and then it stops working again.
Any help that could get us going would be FANTASTIC,
Thanks!!
Any help that could get us going would be FANTASTIC,
Thanks!!
0