Can you restore an iphone 4 with black screen?

Last night my iPhone 4 went to a black screen It still works I. Can still hear sounds but can't see my screen is there anyway I can restore it to factory settings and it work?

Yes you can ok first hold the home and power button at the same time for 10 seconds. Then let go of the power button but keep holding the home button for 5 more seconds. Then let go. Then you should be good