Sounds like you did not bleed the system properly and got an air bubble in the brake line circuit which will cause the pedal to hit the floor and do nothing. Depending now on whether the bubble has escaped to atmosphere or is merely 'locked' somewhere the brakes will now appear to work perfectly fine, if the bubble is 'locked' heat can again dislodge it and cause the same fault to occur. Get you brakes bled by someone who knows what they are doing before you use the car again 
