I'm not sure why the reason for my sound not working is but in the Device manager there is a problem with a new, audio compatibility driver because it has a yellow exclamation mark beside it.
Under the device status it has written:A driver (service) for this device has been disabled. An alternate driver may be providing this functionality. (Code 32)