Short answer: Find out what specific part of the boot sequence fails and, if needed, 'google' the problem
The first thing to try would be rebooting in "Safe Mode" which cleans some cache and only loads the minimum from the system to operate.
If that doesn't work, then you'll need to reboot the computer in "Verbose Mode", see where the login procedure is stuck and Google the problem