Where is the reset button in the iphone?

I opened it up I need it to restore to factory settings since it won't connect to my computer and everything doesn't work
so where inside is the reset button and or if i take out the mother board and or battery will it reset it

You can restore it by connecting to iTunes. Also go to settings, General, and scroll down to the bottom should say reset. You can also hold down the power button and the home key to reboot

Perform a reset on an iPhone by holding down the home button and the top 'lock' button at the same time for about 20 seconds until you see an Apple logo on the screen, then release the buttons.
This reboots the phones software without deleting any data or settings and helps to clear any temporary software glitches.