The brake booster may be faulty. This component amplifies the mechanical force exerted on the pedal, which is then transmitted to the master cylinder.  However, if there is a blockage or a leak that impedes the additional mechanical force, the pedal will not function as designed, and the brakes may not work correctly.