When we eat food the nerve present in the nose and tongue send the message via the network of nerves to the brain. The brain then sends the message to the salivary gland to secrete the saliva. This is how the salivary glands comes to know that there is food in the mouth and it needs to secrete saliva.