I had the same problem with my imac. It was the airport card.
From the model of your mac and google you should be able to find the one you need. I got mine on ebay for £15 and it was pretty easy to fix.
There are loads of videos on youtube with instructions...