shifter gets stuck and wont shift on 2001 BMW 325i

shifter wont shift out of park and recently gets stuck so it doesnt shift into park

Asked by for the 2001 BMW 325i
This sounds like a shift interlock problem. First check your brake lights work every time. It could be a brake switch, or bad connection, or bad interlock. It'll really need some diagnosis. Did you spill any drinks onto the console by any chance?