when I press the breaks the transmission will not disengage to go in drive, why on 1998 Lexus GS400

how often does that need changing

Asked by for the 1998 Lexus GS400
POSS SHIFT LOCK SOLENOID BUT START BY CK'ING BRAKE LIGHT OPERATION AND THEN BRAKE LIGHT SWITCH