A shifting issue with your transmission can be from low fluid, if your transmission is leaking fluid then the fluid would be low causing the transmission to not function properly due to low oil. The other reason could be an internal failure. There are also sensors that can fail or in some vehicles cables that break that could also contribute to the issue. The best way to know why it's doing what it's doing is to have it examined.
Give us a call and let us take care of you.