See a dentist as soon as possible to determine what's causing this.
Both swelling and pain generally indicate an infection. Infections can pose serious medical risks and can even be life threatening. We can't diagnose or treat you over the internet. Call right now and get an appointment.