You can take over the counter analgesic medications but that will only give temporary symptomatic relief from pain. Visit any dentist or an endodontist for proper advice and treatment related to same.
Health Tips
Do not delay. The infection may spread further and complicate the situation. Even if the complications do not occur, the teeth may further decay and may not be in a position to be saved.