A couple of thoughts... Check in Device Manager to ensure it has sound drivers loaded. Second thought: where are you plugging them in? In some PCs, only the front or the back speaker ports are enabled - but often not both. Have you tried them in the 'other' ports?
iPhone 7 review: a range of small updates add up to an excellent phone