2007 E350 Reverse Issue

Lately when I put car in R to reverse into parking space or to get out of a parking space, the car won't move. I have to put the shift knob to Park then R for it to work. What could be causing the problem?