Are you using RO water? If not I would recommend looking into getting and RO filter.
The problem may have been caused by the power head comming off and stiring everything up in the sand bed.
Keep your skimmer going and keep doing water changes until you get things back in control.