Why do your brake lights stay on sometimes on your 2001 ford explorer?

check brake light switch on brake pedal maybe getting bad