To me it sounds like your brake fluid got contaminated. Check the fluid. And if it is contaminated you would need to change the master cyclinder and all the seals in the brake calipers and wheel cyclinders. Thats only if the system was contaminated. And don't forget to flush the system out.