Error occurred while running Windows XP

I’ve two questions, which are quite related. First, what should I do if, for example, I start my computer and it does not open, instead an error message appears on my screen? Next, what if I do not receive an error message but my computer does not respond when I start my computer which is running on Windows XP?
