Why does my stomach hurt after drinking water only okay with other liquids example coffee, juice?

Hard to believe. There is no good reason for this. The difference between water and the other substances is not much and pretty inconsequential given the contents of your stomach. If anything it should be the other way around.