Minerals in the saliva can deposit in the salivary duct, creating a stone that blocks the duct. A blocked salivary gland causes swelling and pain. A blocked gland can also become infected.