Viral or bacterial illnesses, such as mumps, flu, HIV, or those caused by the already present mouth microflora, such as Staphylococcus can cause blocked salivary glands.
To make things worst, if the person also suffers from malnutrition, his immune system will be weak to fight the infectious microorganisms that can easily invade this build-up of saliva.