Condoms are 98% effective if you use them perfectly, but people make mistakes like using the wrong kind of lube or storing ...
When a condom breaks, emergency contraceptives like plan B can prevent pregnancy if you're not on birth control. You should also get tested for STIs.