I think you mean it is a cassette and freehub, rather than a freewheel.
If it's a cassette, probably nothing broke, but the lockring wasn't put on tight enough. Did you do it yourself?
__________________
Stupidity got us into this mess - why can't it get us out?
- Will Rogers