Cream puffs puff up do to steam inside them. So not cooking them long enough or opening the oven repeatedly to check on them will release the steam before the puff is baked and they'll collapse.