hi , pain the jaw is not due to braces, as you have told that there is clicking sound as well so this is due to some disorder in your temporomandibular joint. you should consult two dental specialist for your issue, first go for an orthodontic analysis. the orthodontist will check your pain association with praces treatment, then also take one opinion from a maxillo facial surgeon regarding the clicking sound of TMJ
. good luck, regards.