Write down the error code and post it here. With that, we can narrow down what the problem is, and provide a more specific solution. As saran suggested, reseating your ram is a good starting point, but you should run
Memtest86+ on it as well to test the ram to make sure it's still functioning properly.