Flush and bleed the system. You most likely have air in the brake lines or ABS block (if equipped). Check the cylinder seals on the brake calipers as well and make sure they are not compromised...