Fillings are used to fill the defects on a tooth which evolved from caries.
Caries destroys the hard tooth tissue. Therefore it is necessary to remove the caries from the affected areas by the dentist. The evolved cave (cavity) has to be closed now using a special material.
You, as the patient, need to think about -concerning the stability, function and aesthetic- which material the filling should have.