Stop and pump the brake pedal several times
Stop at the nearest garage and have the brakes looked at
Drive slowly and apply light pressure to the footbrake
Drive at a normal speed until the brakes work properly