As the tooth has decay, it may need a filling or root canal treatment. However, it may not be possible to save the tooth if it is shaking.
Next Steps
please visit a dentist for x-ray and further treatment. Meanwhile you can take any pain killer to relieve the pain.
Health Tips
Warm salt water gargling will help. Do this 2-3 times a day.