can you show your schematic?
It can be one of the following reasons:
1. The PWM driving circuit is not able to drive the transformer when on load.
2. output was connected with chips which was somewhere short.
3. Feedback control, the resistance value must be correct.