When you are working on your Computer , suddenly your computer undergoes in a state that doesn't start operating system at all just simply showing the windows loading logo & restarts again & again , there is a different thing that may affect your PC stops booting.
Here are the Common causes.
Solution : after restarting your machine press F8 on your keyboard and it will show up menu , choose Safe mode and press Enter key on you keyboard. it will then Enter into safe mode, there you can check the cause of the problem .
What is SAFE MODE in Windows?
Safe Mode is a Troubleshooting mode on Operating System(OS), when we enter into the Windows Safe mode the windows will load the essential system programs and services only on start up.
if you want to know more about the Safe Mode in Windows i'm dropping a link below.
https://en.wikipedia.org/wiki/Safe_mode
https://support.microsoft.com/en-us/help/17419/windows-7-advanced-startup-options-safe-mode