sound issues with ubuntu 19.04

I install ubuntu 19.04 alongside my windows 10 on my aspire5742G laptop. I was playing music in ubuntu and all of sudden the speaker(internal speaker)stops. I tried all I could but was not successful. I deleted the ubuntu but still windows cannot play through the speaker. I have even formatted the drive an reinstall windows but the problem still persist.

What is the possible cause of this problem? can changes in ubuntu affects windows permanently?

I really need your help guys.