I have tried formating and re installing the rom I was using and also I tried reflashing Via windows with TPT which worked just fine but even if I did so, the problem still remains. As soon as I unplug the usb the phone goes off as if the battery is dead, even if the indicator shows the battery is full. Also if I let it boot, as soon as the screen shows a glimpse of the android UI, the phone reboots.
Does anyone have any idea what I can do and what I did?
After leaving it for a whole day (14 hours) to rest with the battery off and then putting the battery back on and trying to turn it on, it did. I am glad it is still alive. I still do not get what happened to it.