Why do my three-way switches only work in one configuration?
You wired it wrong, or the switch you added is defective.

If you want more detail than that, update your question with a complete and accurate discription of the circuit, photographs of the wiring you changed, and details (model number) of the dimmer you installed.