first thing is that this thread wasn't right place to ask this question.
anyway,just seems that your battery is dead. plug in to the charger and sit back for a couple of hours. then if you dont have any rom on your phone read the instructions below:
according to your signature , you've Z2 D6502 , so try to install a rom that fit to your device.
Error 7##in error vaghti miad k recoverit natune formate file zipo beshnase, pas bayad recoverito avaz koni, TWRP taghriban hame formataro mikhune)
at the begining, try to install cm12.1 official
1. flash cm12.1 boot.img in fastboot
2. install cm12.1 througt recovery
3.active terminal emulator (find in developer options)
4.copy twrp image file to your root (rename file to recovery.img)
5.type this in terminal:
dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
now find your desired&proper rom for your D6502 and flash in twrp ..
if you seek this way correctly you dont got Error 7
twrp official link : this