Likely not enough light and too much water/not good drainage. They need to be in a very sunny window (like south), and be in a pot that has lots of drainage holes and preferably cactus/succulent soil and a terracotta pot. They also like to completely dry out between waterings.