Rinse aid residue (from the dosage of the chemical being set too high in the machine), lipstick, heat and a dirty glasswasher can all have a defoaming effect, which will make the head go flat.