if thats working then it probably means ur Connections have come away slightly and r not touching enough to fix it,dont keep pressing coz ur forcing the Connections further away from each other,you can see here
HOWTO fix HTC One X wifi issues - YouTube