Who invented the working of stomach?

Your question contains a scientific misunderstanding. The human body is a result of millions of years of evolution, and there is no single inventor or creator behind its functioning. The workings of the stomach, including its digestive processes, are a result of complex biological processes that have evolved over time through natural selection. Scientists and researchers have studied and understood these processes, but they did not invent them.