Sounds like a loose connection.
1. If you can, remove the hard drive, clean the connections with a soft cloth and refit.
2. If the hard drive is making strange noises, it could be faulty.
3. Check that the memory cards are properly seated.
4. Common with laptops, clean the keyboard as sometimes something can get stuck under the keys causing an error on bootup.