Hi
When Wi-Fi is enabled on your iPhone, the "Ask to Join Networks" settings option is accessed via Settings > Wi-Fi.
If you cannot connect to Wi-Fi, then follow the steps here, including contacting Apple Support (remote diagnostics and/or mail-in service may be available, if required), making a Genius Bar reservation or visiting an Apple Authorised Service Provider if necessary: