It worked once & now doesn’t: switch failure or wiring failure.
It never worked: switch bad from store or wiring failure or wiring wrong.
There are two stages to troubleshooting this.
First stage:
Pick any switch & label the lever positions with a '0' for up & a '1' for down. Leave the lever in the '1' position. Label it S1.
Flip one other switch [label it S2] until the light goes on & label the lever position with a '1'. The other lever position gets a '0'.
For the light [L] being on, a '1' is shown in the table below & so now you're on the first row below.
S1.S2.L
1.. 1.. 1
0.. 1.. 0
1.. 0.. 0
0.. 0.. 1
Then step thru each row from the top row on down.
If these two switches are working, the light should go out, then stay out & then come back on.
Report back on what happened with the light.