Hello and thank you for choosing Just Answer.
It really depends on what the problem is. A common issue would be the brake light switch , which is on the very top of the brake pedal. The brake light switch prevents the car from being shifted into Drive, without the brake being pushed all the way.
If you follow the brake pedal all the way to the top you should see a little switch that is being pushed by the metal part of the brake pedal. The switch will need to be replaced or adjusted. It is not very involved job it's actually not too big of a task.
Picture of the brake light switch:
I do not get paid until you press the ACCEPT button, please press ACCEPT. Feedback and Bonus is highly appreciated!