Going by your description, it seems like the muscles of the cheek are involved. This can occur due to multiple reasons like infection, trauma or even involvement of salivary glands.
Please visit a dentist for a proper clinical examination to ascertain the exact cause. The right treatment can be instituted only after the right diagnosis.
Health Tips
warm saline rinses might help.