Try resetting the SMC
Intel-based Macs: Resetting the System Management Controller (SMC)
If it has Lion or later try booting to Recovery
OS X: About OS X Recovery
Otherwise boot from install DVD.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar