Pair of 3-way switches, when one is on, the other won't toggle it
You need to wire them properly for them to work properly.
So, the unswitched hot needs to go to the black screw on one switch. The switched hot to the light needs to go to the black screw on the other switch. The travelers between the switches need to be on the brass screws on both switches.