While waiting at a drive thru, the brakes did not respond when pressed and the car kept moving forward. The emergency braking system also did not respond. The car was placed into park and the car still did not stop. This resulted in hitting the car in front of us in line.