I assume that you are having problem connecting to wi-fi, or you won't be here asking questions.
If you cannnot connect to a single wifi but can connect to other wifis perfectly, you should check this wifi, reset it or contact the operator.
If your ipad just have problem connect to any wifi, then it must be the ipad which is problematic. You can try to restore it with tuneskit ios system recovery. This tool is able to restore your ipad without data loss.