1st check that your brake lights work ! odd you may think !
Depending on weather it has a 4 or 2 wire switch on the brake pedal it will most proberbly be the brake pedal position sensor .
If its a 2 wire switch it will have 2 switches on the pedal look in that direction 1st ..
Regards Doug .