The pain and headache may be due to re-infection of root canal
I would advice you to visit a dentist
and get a thorough clinical evaluation done.
Tooth has to be re-rct done if necessary.
Meanwhile,maintain oral hygiene
Swish with lukewarm saline.
Get routine dental check up.
Hope this helps.