No sound with my iphone 2g

I just got an iphone 2g that my buddy didnt want anymore because it no longer has any sound on it. When it rings it only vibrates. When you type it no longer clicks. On the ipod when you play music there is no sound but when you plug headphones in there is static and the only sound you hear is when the volume is turned up or down but when you stop turning up the sound the volume stops and you only hear static. I have rebooted, reset, restored and it still hasnt been fixed. I wanted to know if there is anything i can do to fix this problem.