Default [Q] [Help] internet problem

I was on Cm11 unofficial problem and i have it for about 3 weeks but suddenly when I was using the wifi it just stopped working it says connected but no internet access so I tried to take out the battery and but it back in and all these stuff But didn't work so i went ahead and installed the stock rom back again and tried to login to wifi it says connected but no internet access I tried to use the mobile internet and the company took the price of the mega I will used and I got a nofication about that but again no internet access So is this a hardware problem ?? and what should I do ??
I have s2 plus i9105