Mom doesn't sleep at night and not even during the day. She writes all the time, supposedly her life story. She is constantly saying that God is talking to her and that he told her that she needs to write. She is always praying and reading the bible. She is also very confused at times and she says that her time is coming and she needs to hurry up. I need help trying to understand what really happened to her. Please reply.
What did they ER say about her condition?
Have you taken her to her Primary Doctor?
If not, that would be the place for a diagnosis, and possibly some medical help.
Give us some more details, if you can.
Mac is right; this sounds like bi-polar behavior in its manic phase. She also could be having a psychotic break, you just don't know. She could also BE dying and living out her final days now, trying to get this writing job accomplished. There's just no way to know.
We here on the forum cannot possibly do anything but speculate about what's happening to your mother. She needs to have a full medical work up and evaluation ASAP!
I hope you are able to get her in to see her PCP right away!