Your poor little girl. She must be miserable, slowly starving to death but unable to eat & drink normally.
The following article lists possible causes of Lockjaw in dogs. The possibilities are quite diverse, so your vet needs to do enough testing to figure out the cause and possible treatment.
https://wagwalking.com/condition/lockjaw
Good luck.