this problem seems very wierd, if your phone turns off when you disconnect it from the charger try to replace the battery with a friend just to check if the problem is from the battery, if it still don't work go to a lab it may be the connectinon of the battery