how much is it to replace?
veronica, Find below a guide showing how to disassemble the 3GS so you can change the logic board yourself. 2nd link is a logic board for $6.99. If not wanting to do the repair yourself have a good computer/cell phone repair shop have a look and estimate repair. Good luck.
I hope this helped you out, if so let me know by pressing the helpful button.