You'll probably need to provide a little more info e.g. Mame or arcade? If mame what kind of encoder are you using e.g. ipac, zero delay etc. I would try taking a working button's wires and switch that with your non working button first. Maybe the wires are faulty. Then check the encoder and see if the headers are loose.