gearshift stuck in park. using a key in slot works but what is wrong and how to fix? on 2001 Acura TL

just happened. i used a key to get in gear. how do i fix it and what is wrong

Asked by for the 2001 Acura TL
Could you ask someone to see if all of the brake lights are working? If the brake switch is bad the shift lock solenoid won't work most of the times. If the brake lights are OK, the problem could be the solenoid or wiring.