Look at the pins carefully. Many have a small latch which must be depressed. For plugs with flat pins a jeweler's screwdriver will frequently suffice. For round pins you may have to purchase a kind of tubular tool to fit around the pin and depress the latch. You'd better be really sure you want to swap wires around. Sometimes that can let the smoke out of some devices.