Can you share clinical photograph of the teeth ? for further diagnosis .
In the meantime you can take a simple Painkiller like paracetamol .
Also, from the given history you have pain while sleeping, so it's because of infection of the tooth due to caries & gum infection due to lack of hygiene in the wisdom tooth area causing spread to the the end of the root.
Next Steps
visit dentist for further clinical examination & treatment or you can consult on practo! we are here to help you!
Health Tips
1.maintain oral hygiene by following proper brushing technique with fluoride containing toothpaste & Gargle with lukewarm salt water after every meals to maintain oral hygiene.
2.don't chew from that side till the treatment is over or getting done.