This is what happens when you put an antenna inside of an aluminum device casing but it still should work. There is actually an internal antenna and it may have detached from its connection point or was just a weak connection to begin with.
Any changes in connectivity using a WPA2 network or entering the SSID manually?