I am experiencing basically this right now. I am otherwise usually very healthy but have been having digestive problems for about 6 months. I realized last month that my newfound sleep problems seem to correlate with my stomach upsets. It was not obvious but after realizing it, I got some meds from my doctor for my stomach problem and my sleep problems went away as well!
My doctor is trying to play things safe and actually had me do a barium swallow test at the hospital this morning. This required me to not take the stomach medication for a few days and sure enough the sleep problems came back!
One thing that freaks me out is I normally have a very healthy and balanced diet. Still not sure where the stomach problems are coming from.