At that time, the tooth had decayed deeply. The first time I filled my teeth, I only filled my crown, but I didn't do root canal treatment, that is, I didn't kill my nerves. Now the tooth nerve infection causes pain, that is, pulpitis has even spread to periapical periodontitis. I suggest you go to a stomatological hospital or clinic to have a check-up and take a film to let a professional doctor see the specific situation of this tooth.
According to your description, I estimate that your teeth are apical periodontitis. First, go to the hospital for examination and filming, and the doctor will advise you to do root canal treatment: drill an eye from the tooth surface with instruments, then kill the infected pulp nerve with special instruments, clean it up, disinfect it, and finally mend it. Of course, it is estimated that it will take three weeks of treatment.