My Samsung Galaxy is S5 Freezes and stops working

A

AC Question

Hi there, basically, i was using my Samsung Galaxy S5 today, and i got a popup from samsung saying S health has stopped working after two to three seconds, my phone would freeze and will not respond to any of my actions. When i press the power button the phone screen will turn off, but i will not be able to turn it back on. Instead if i press the home button after i pressed the power button to turn off the screen. The screen would stay off and my back button and the icon next to the home button on the left would flash for 1 second then turn off. Now that this has happened after 2 minutes my phone would power off by itself and restart. The issue is, now it's stuck on the samsung logo with the blue circle animation bursting behind the logo is occuring, and it hasn't gone away. What do i do? Please help me