You could have a transmission problem or possibly maybe just the in the shifter system. Is the Malfunction Indicator Light (MIL) on? If so, there's data and trouble codes stored in the controller and would help for diagnostic purposes. A mechanic with a scanner could read the codes and data.
Here's a directory link for you: