iPhone 3G blacks out and displays random static
It's the display connector cable inside the iPhone which can come a little loose. You can open it up and reseat the cable if it happens again. Ifixit.com have guides.