Birth control

I’m 16 and I’m about to start birth control. The doctor was explaining to me about how it works but right before she got to the sex part my mom stopped her so can someone please explain to me how that works. Thank you (: