You either have a shift lock solenoid issue or the shift cable is stuck. Try putting the ignition key into accessory and move the shifter.
let me if this works. You may have to remove the steering column cover and manually release the shift lock.
sorry, moved it in the newer trucks. It is on the lower part of the steering column right side.