Phone [Q] Help!!! HTC One(m7att) won't connect to wifi or data networks

My HTC One stopped connecting to wifi on February 21(as my wifi usage shows) and today it stopped connecting to the data network after I put it on sleep mode after around 2hrs of usage for internet browsing. How can I fix this?