My iphone 3gs home and lock buttons won't work

I know about the accesive touch thing and i use that to lock and go to the home screen but when i my phone is locked the only way i can get the screen to light up is taking out the sim card and putting it back in. Is there any other ways?

Yes by going to Nigeria.

WTF? Going to Nigeria will definitely not help
It's the hardware that giving you such problems
I suggest getting a new home button but the lock button may be harder to find(or impossible)