Default Big problem in my xperia sp

My xperia sp is hanging if i try to use it for 10 or 20 seconds and turning off.I tried to repair it through pc suit and flastool but still this problem exists. where is the problem.is it software or hardware.