Barrier contraceptives do exactly what the words suggest. They provide a physical barrier between the sperm and the egg. If sperm are prevented from meeting an egg, they cannot start to create a baby.
This is a companion discussion topic for the original article at https://patient.info/sexual-health/contraception-barrier-methods