My screen is going blank.

?When I'm using the phone for some few minutes and then I press home key , nothing responds the when I press again the screen goes blank so I have to restart or plug in charge before it comes...I once saw a pop up saying system ui not responding.. I'm thinking of flashing it will it solve the problem?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

copy all data using a computer and usb cable. Charge the phone. First do a factory reset from Settings.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0