After bowel surgery, the gut can simply stop moving for a while. Nothing blocks it; it has just gone quiet.
Post-operative ileus is reduced peristalsis causing a functional (pseudo-) obstruction, common after operations with extensive bowel handling. It causes distension, pain, vomiting and no flatus. Low potassium, magnesium and phosphate can contribute. Keep the patient nil by mouth, then sips of clear fluids as they improve. Use an NG tube for persistent vomiting, give IV fluids and correct electrolytes. If the ileus is prolonged or severe, consider TPN.