it seems that your phone has hardware problem and not software,propably felt down or water damage.