What to do if left and right are swapped
On speakers, swap the cables at the amplifier or at the speakers themselves (red is right by convention). On headphones, check you’re wearing them the right way round: look for the L and R markings. If the problem only happens on one device, check its sound settings for a “swap channels” or mono option.
If one side is silent, try the other cable or input first. A dead channel that follows the cable is a cable fault, and one that stays on the same speaker is a speaker or amplifier fault.