please send your dental x-ray . so we can confirm the depth of cavity. if it not deep then filling can be done and if it is deep or it is symptomatic then root canal treatment is performed. sometimes, root canal treatment has to be done in case of severe sensitivity.