Engine sputters out when brakes are applied

Look under the dash around the brake pedal area to see if anything electrical is being moved around when the pedal is applied.