Jaw popping and pain??

It started off as abit if clicking which i sometimes get, but its getting worse and.worse. its really clicking and popping now and feels.sore. it hurts to eat anything! What is this??