Headset won’t connect to pc

Just bought a new headset this was happing with my old one too I just assumed it was the headset but I guess not any ideas on how to to go about fixing this