Chosen Solution
I tried everything like put on recovery mode and connect to iTunes, restart, Riboot but nothing works
If you’re not having any success with software fixes, this is likely a hardware problem. It’s difficult to say for sure what your issue is specifically. The reasons for this issue are numerous. But I find that the front sensor assembly can cause this often. Usually because some small bit of water got in through the ear speaker. The iPhone Keeps Restarting wiki may be of help in this case. It will give you a much more extensive list of potential causes.