I removed and reinstalled the RAM and mysteriously, it booted up. I have had two successful boots now and the laptop is working normally.
What could be the explanation?