Wifi not working

Hello i have one piece samsung SM-j500H which connects to wifi but not working, i cannot browse the net or logon to google play. But i can connect to the net and browse the net with mobile data. Can anyone help me out, im sure its hardware problem?