Both the sink and the shower should have a p-trap, the water is trapped in the p-trap and traps the sewer gases from getting back in the house. If the vent is clogged or not correct the vacuum from flushing can suck the water out of the p-trap and allow the sewer gasses to get back in the house.