The first thing you should try is to repair the phone using PC Companion or Sony Ericsson Update Service (SEUS), to see if this is bad firmware.
If you repair the firmware and you still have the issue, then it's probably because of the hardware (the phone itself) and you'll have to get it fixed, probably requiring a new motherboard.