The shift cable pulls a lever that turns the selector shaft (the thing the
nut is on) that turns inside the transmission. The black thing under the
lever is the range switch. You need to do the following:
Check the cable adjustment.
Check the range switch adjustment.
Check the range switch for proper operation (this is easiest with a scan
tool which will read transmission data).