My MacBook Air won't connect to wifi
Option click the wifi icon in the menu bar and select Wireless Diagnostics.

Follow the instructions and post a second question if you get stuck with a specific step or can't narrow down the issue.

Also, carefully read the help guide on how to be specific and show how your research such as what version of OS X and what router is not working as expected.