hey,
as per your complaints, I can say, you are having sensitivity because the filling has come out and so now your dentin is open to saliva and food. which is causing sensitivity.
second the other side, if there is swelling then its definitely an infection. the caries of your teeth has caused infection in bone and gums. its called periapical abscess
Next Steps
1. get refilling done asap