A proper history of your pain is required , some questions need to answered , like any past swelling , bleeding or pus coming out. if there is swelling then it suggests you have a infection in your bone below your teeth. some times it requires for your dentist to put some medications in your teeth and leave for about 15 days to a month for that infection to come down.
Next Steps
you can continue antibiotics and painkillers given by your dentist and dont miss your follow up visits to the dentist if your pain reduces.