Did it get dropped, got wet, etc. ?
Check net forums or docs for a deep-diags-mode that can check the ram/rom/cpu, etc.
If it's a phone, try removing the sim card.
If you can get it to boot up properly, loading it with the latest firmware might be a good place to start.