When nerves in your throat come into contact with an irritant, the nerves send signals to your brain to cough. This causes the muscles of your abdomen and chest wall to give a strong push of air to your lungs to try to get the irritant out of your body.