Most of this from what I've read here:
Gear selection is totally electronic. The component most often at fault is the Transmission Range sensor. It is mounted on top of the transmission, right under the thermostat.
Unless the transmission fluid is at normal operating temperature, it will read low on the dip stick. The level has to be checked with the engine/transmission hot and idling in Park.