Repair guides and support for the Galaxy E7, an Android smartphone released by Samsung in early 2015. Features a 5.5" Super AMOLED 720 x 1280 display, a quad-core 1.2 GHz Snapdragon 410 CPU, and 2 GB of RAM.
This issue can be due to the phone's age, the battery is probably dead. You need to replace your battery. And does the phone restart on charge as well?