If Ubuntu 16.04 won’t allow WiFi connections after waking from suspend, try
systemctl restart network-manager.service
If that works, see the discussion of minor script modification to auto restart NetworkManager on resume. If it’s a chronic problem, those scripts will run this command for you at each resume to make your Wifi work upon resume from suspend on Ubuntu 16.04.
If you are having more severe Wifi dropping issues on Ubuntu 16.04, there is discussion of deeper fixes to Ubuntu 16.04 Wifi dropping.
Canonical bug report for NetworkManager Wifi not working upon resume from suspend in Ubuntu 16.04.