If every condom you’re trying is breaking then it sounds like user error. Whether your pills are still effective depends on what antibiotic you’re taking. If you’ve thrown up within 2 hours of taking your pill you’ll need to take another one. If he finished inside you but the condom was fine then you don’t need to worry you’re still protected, but if the condom broke you could always go to your doctor/pharmacist for more personalised advice x