have phone hacked need to hard reset how to hard reset

my phone was hacked. now i cant use it,it rings but i cant answer or do anything else. i also can not turn it off using button.

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

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0