If the pain is so severe that you feel that nerve is fluctuating then it means ur cavity is very deep and it is reaching ur pulp region. U need to visit a dentist nearby and first take an xray and see how deep ur cavity is and decide upon the root canal treatment followed by cap placement.
Next Steps
Meanwhile u can take an analgesic like diclomol thrice daily after food. but this is only temporary relief.
Health Tips
your pain will not subside unless and until we treat the deep cavity, so please don't eat more pain killers