What caused your iPhone 3GS to stop working in the first place?
How long was it inactive?
Does it currently have an active SIM card?
Can you currently make phones calls?
If you don't have 3G, do you at least have EDGE (E)?
Is the 3G set to ON (Settings> General> Network)