The connection between the nose and the brain are governed by our sensory motor cells and neurons. Our senses (including the nose) send signal to our brain through the neurotransmitters. Similarly, the brain sends feedback to other senses and organs through the same media. This explains the unpleasant feeling we get when we smell something foul.