Can you access a terminal by typing Ctrl+Alt+F1? If so, the problem is indeed
related to the X server. You can log in the terminal and take a look at the
Xorg's logs and spot the problem:
$ less /var/log/Xorg.0.log
If a X has a configuration file, you can remove it:
$ sudo rm /etc/X11/xorg/conf