Thanks for asking the query,
Tooth pain indicates infection of the tooth that had involved the pulp tissue, such type of tooth can be root canal treated to save it permanently.
As you mentioned your temporary filling was underfilled and broken there are chances of food lodgement leading to pain.
I would suggest you to visit to a Dentist
get an x-ray done
Start with the root canal treatment
of the tooth, unless the tooth is devitalised, disinfected and sealed to the apex you will face pain and infection.
Take tab Augmentin 625mg and tab aceclofenac
for three days, maintain a good oral hygiene
, use chlorhexidine
mouthwash gargles twice daily.
Hope this helps out.