hang problem while dial or receive any call

sir, can u help me out in repairing an iphone 5 which is hanging while dial or receive any call also its compass is also not working , i already hard reset and tried erasing my phone, didi u suggest any hardware replacement solution, Please help.

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

crwdns2934109:0crwdne2934109:0

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