Wont connect to wifi or 3g internet. Help PleaseSupport

I have this Optimus S LS670 that wont connect to wifi or 3g internet. When i try to connect to wifi it scans finds wifi connections. it connects for a split second and disconnects. ive tried to hard reset it. Any suggestions? Thanks