What's the mechanism of colicky pain? What are drugs for management of inflammation of gut with or without burning in abdomen? How to differentiate various pains in gastrointestinal tract?

How to differentiate colicky pain from other pains? What to ask in history when patient present with vomiting or diarrhea or both? How to manage such patients on OPD basis?