hello and welcome to HCM forum Khushbu,
according to the dental and medical history provided by you, i would like to inform you that an antibiotic alone won't help, anti-inflammatory and pain killer is also required, but for now, as your tooth is impacted ,therefore cannot be removed until a few more months.
i recommend you to perform warm saline rinses( 3-4 times/day),
also use an antibacterial mouth wash( betadine
these two measures will bring you relief from pain.
kindly visit your dentist
soon so that he/she can prescribe you an anti-inflammatory medication as well ,
i hope i answered your query,
i wish you good health,