The front panel glass of my 3Gs was smashed, but everything else worked.
All well after some fighting to get the broken glass away. It looked OK and I had only to pinch the new glass and old frame together; a bit to eagerly though; I happened to bend one of the small contacts for the home button. Try . . .