Hello and thank you for posting your query on E health forum.
From the history it seems that your kid might be having a form of enteritis.
This is a inflammatory condition of the bowels resulting in crampy pain on and off, along with nausea, decreased appetite , etc.
She might be benefited by undergoing a CT scan of the abdomen, which can help the exact cause and location of the pain.
I hope this helps.