1. Check the obvious: Make sure the parking brake is fully engaged. A partially engaged parking brake can sometimes interfere with gear shifting.
2. Engine Running or Off? Try with the engine both running and off. Sometimes, a slight engine power assist can help free it up if the problem is minor. Try gently shifting the gear selector while the engine is running *and* then while it is off.
3. Try multiple shifts: Gently rock the gear selector through the different positions (P-R-N-D-L) a few times. Don't force it, but use a firm yet gentle motion.
4. Check the gear selector: Inspect the gear selector itself for any damage, binding, or obstructions.
5. Battery Check: A weak battery can sometimes interfere with electronic systems controlling the transmission. Check the battery voltage. If it's low, try jump-starting the car (with proper safety precautions).
6. Check the transmission fluid: Low or dirty transmission fluid can contribute to shifting problems. However, checking it requires some mechanical knowledge and you might need a mechanic to do it safely. Low fluid is a serious problem.
7. Professional help: If none of the above works, you absolutely need a qualified mechanic. A stuck transmission could indicate a serious internal mechanical or electrical problem. Driving with a faulty transmission can lead to significant damage and costly repairs. Towing is recommended.
Important Safety Note: Never attempt to drive a vehicle with a malfunctioning transmission. This is extremely dangerous. A car that unexpectedly shifts out of gear or fails to shift can cause accidents.