Accidents happen. If ever in this situation, there are a number of steps you can take to reduce the risk of infection should either of you be HIV-positive or one or both of you do not know your status. If a condom breaks while having sex, it's best to stop immediately and pull out carefully. The most important thing at this stage is to avoid panicking.
In a moment of passion accidents can happen, a condom worn incorrectly, handled roughly or past its expiration date can lead to it breaking or slipping off during sex. Condoms have been proven to provide protection against sexually transmitted infections STIs. In fact, condoms are the only contraceptive method that also provides STI protection. Condoms provide different levels of risk reduction for different STIs because infections are spread differently — some are spread by contact with bodily fluids while others are spread by skin to skin contact. In general, research shows that condoms are most effective in preventing those STIs that are spread by bodily fluids, such as chlamydia, gonorrhea, and HIV.
You may need to look for the broken condom. Go to the bathroom and pee to flush away any sperm that may be near your urethra. Whilst sitting on the toilet remove excess sperm by squatting down and squeezing with your vaginal muscles.