If you are trying to access YouTube on Safari, most YouTube content requires the Flash plugin which Apple does not support on any iOS device including iPhones. Use the YouTube app instead.
For Safari. Tap Settings > General > Reset > Reset Network Settings
If that doesn't help, try here > iOS: Troubleshooting Wi-Fi networks and connections