Well i found out the issue and it has nothing to do with sony nor the hardware, it's just that FACEBOOK is causing all kind of errors including mine which is restarting and freezing, uninstalling it should solve the problem for now,it isn't working and can't connect to it anyway.
Lots of.people on different forums are mentioning it's a major error happening due to Facebook specially in the z1 phones.