When is the last time she looked okay to you? Just check to make sure you're not dealing with a case of flystrike. That might account for why she's pecking at herself. If that's the case, you need to try to get any maggots out of her ASAP, they are literally eating her alive. Let me tag a helper for you, you need more help than I can give you. Pictures as soon as possible will really help. @Eggcessive, @Wyorp Rock, @aart
We definitely need to see photos to see the extent of the damage and whether it started with flystrike, prolapsed vent, or something else. Try to remain calm and not stress her out. Also, she needs to be in a very warm place. You may be facing a wound that will require cleaning or additional care.
Maggots look like white rice that wiggles, they are fly eggs. Not eggs, larvae, sorry. I can't see any in those pics, but I'm not looking at her in real life. Is that something crusty in her bottom? Does she look impacted?