With the details provided by you say that you have anxiety
as well as infected tooth. Anxiety is one of the cause for bruxism
(clenching your teeth while in sleep) which would tense your jaw muscles and also the temporomandibular joint. Infected tooth can result in pain and discomfort, but the nature of discomfort which you are suffering is not likely to be because of that infected tooth. however infected tooth has to be treated, you cant leave it alone. Visit a dentist
, he will let you know whether you are suffering from bruxism or if infected tooth is causing the discomfort. There are various treatment modalities for treating bruxism which includes reducing anxiety and wearing of a appliance. Do visit dentist for proper diagnosis and treatment.