Number of cavities in the mouth has many reasons. That can be because of your eating habit or may be because of poor oral hygiene. you should consult your Dentist and get Dental x-ray done to check the depth of the cavity. if it is not deep then it can be cleaned and replaced with cement. In case of deep cavity, it is treated with Root canal treatment.