If you cracked or broken the front glass but LCD still works, then this is the part you need
This touch glass with mid frame assembly for iPhone 3G comes with home button, home flex, earpiece, proximity sensor flex
http://www.hytparts.com/000584-high-quality-touch-panel-didigitizer-with-frame-repair-part-for-iphone-3g.html