My car will not shift out of park. The brake lights are working. on 2001 Ford Escort

My 2001 Ford ZX2 won't shift out of park. It is an automatic. The brake lights are working. The shifter column has been broken for a few years but has always worked. I took apart the central console to see if there were any issues and couldn't see any. Suggestions would be helpful. Not sure if I need to replace the shifter or something else.

Asked by for the 2001 Ford Escort
Either it's the lock solenoid at the shifter housing, or had some before that the stop light switch was not moving far enough even though the brake lights worked.