If there is recurrent pain and medicines are not helping then operculectomy needs to be done. If operculectomy doesn't help then extraction needs to be done.
Decision can be taken only on clinical examination.
Next Steps
Refer the blog in below link.
Health Tips
"When to Do Treatment of Wisdom Tooth" by Dr.Rashmi Bamane - https://www.practo.com/healthfeed/when-to-do-treatment-of-wisdom-tooth-45843/post