This could be due to an infection. Pain and swelling point towards inflammation which can occur due to infection(as you have not given any history of trauma). You can take motrin 3-4 times a day. Also do warm compresses from outside. If this does not help you will need a course of anti-biotics and since these are prescription drugs you will have to go to a doctor. Thanks and best wishes.
Please, click the ACCEPT BUTTON so that I can get my dues. BONUS and a POSITIVE FEEDBACK will be appreciated.