I had the same problem with my 97 f-150. I found the brake light switch on the brake pedal was cracked & forced it out of adjustment. It still had continunity, but out of adjustment due to the crack. My switch was up by the top of the pedal beside the steering column. Replaced it & worked great.