Premature birth, a family history of colic, and difficult labor or delivery are some risk factors for colic and gas pain in babies. Additionally, babies who are formula-fed or have a sensitivity to certain foods may be at a higher risk for colic and gas pain.