Hello, I'm Chris.I will do my best to answer your question fast and accurate using the info you have provided. Thanks for visiting Just Answer.
If the brake lights always work when the brakes are applied then most likely it is a weak brake shift interlock on the shifter which is not sold separate however you do need to remove the shifter bezel and clean it soapy water to rule out a drink spilled in and making it sticky. If that does not resolve it then a new shifter is in order. Below are 3 files showing the directions.