You have to catch Virizion and Cobalion first.
The Musketeer Trio must be caught in this order:
- Cobalion (Mistralton Cave)
- Virizion (Pinwheel Forest)
- Terrakion (Victory Road)
Since you all think I am wrong for some reason (Idk why) I think I'll give some sources.