Well it's not iOS4, or 4.1 unless you have lost the option for WiFi entirely (grayed out option). There are three simple things you can do to get this fixed:
1. Reboot the router (just unplug it from the wall)
2. Reset the touch network settings - tap Settings > General > Reset > Reset Network Settings
3. Log back into you network as if it is a brand new network - tap Settings > WiFi > Other and re-enter your network name, security settings, and network password.
If that doesn't do it, then repost with some additional details - i.e. error messages you might have received, router/network information, encryption used, etc.