If plants die it can have various reasons. So first think i would check if the plant has any bugs or mold. The second thing i would examine is the soil and water. The nutrients may affect the bud growth as well the ph-Level of the water and soil.
Well and depending on the flower you may have to increase or decrease the light. And also think of the sleep rhytm of a plant.
If you always turn on the light during the night or have your plant in the living room where you watch tV till late night, then the plant may abort the fowering.