Samsung Galaxy S3 unable to power on after shutting off randomly
It seems that your phone have hardware problem . It loose the contact of power supply internally. May be there was damage in power IC. 

If your phone is in warranty period give it to Samsung care otherwise take a help of local phone repairing center for cheap solution.