If your brakes fail while you're riding, don't panic. Try to slow down by dragging your feet on the ground or using any other available means of slowing down. If you can, try to steer your bike towards a safe stopping spot, such as the side of the road or a grassy area. Once you've stopped, inspect your brakes carefully and have them checked by a professional before riding again.