My internet connection isnt working?

My internet connection works fine when im using a browser, but when i try to play a game or use spotify it says to check the connection. I tried disconnecting it and refreshing it and it didnt work. How do i fix it?
Update: It is an an hp laptop
3 answers 3