You could be watering it too much. Or maybe you aren't watering it enough. Or it could be in the wrong type of soil. Do you have pets? if so they could be messing around in the soil for your cactus and making it unlivable for the plant. Or the cactus itself could have died.