Just by this very brief description of your problem, it is impossible to tell what component is causing the issue. There are quite a few.
It could even be a failure of something on the rear of the car causing the issue.
We’re a forum community dedicated to Nissan Versa owners & enthusiasts. Come join the discussion on performance, troubleshooting, accessories, purchasing, maintenance and more!