The not eating problem can be due to many different factors like stress, and enviorment not being maintained or it could just be because it isn't hungry. My fantasy frog just went three days without eating and today ate its first pinky.
The problem with contorting thing can be a big problem and it could be metabolic bone disease (MBD) or toxing out syndrome.
Metabolic bone disease occurs when the frog isn't receiving the proper calcium and d3 needed to process the calcium. Are you feeding it only crickets and if so are they dusted with any vitamins or calcium? A varied diet is important for these guys and they need the proper nutrients.
"Toxing out" occurs when the water or substrate inside the habitat has become foul and the toxins have been absorbed by the frog. If you suspect the frog is toxing out, place the frog into a small water bowl and leave it there, changing the water every four hours while you clean the habitat.
I suggest reading this short book to help you out http://www.amazon.com/gp/product/B00...ie=UTF8&btkr=1
its very informative, short and to the point.