This is a wiring issue. You will need to remember how the original outlet was wired or called an electrician. Generally, the red wires are used for switch legs. You may need to "send" power up to the switch with one wire and "bring it back" with other. Generally, this is handled through the way you configure the "taps" in box holding the device. Unfortunately, when systems are wired this way (no fault of your own) they are more complicated then just connecting the black to black and white to white. Do you have a picture?