Well, to start, how does a hiccup work? Nope, a little dwarf doesn't live in your chest. When you experience hiccups, you get spasms which contracts the diaphragm, which is a sheet of muscle that separates your chest cavity and your abdominal cavity. The spasms cause a intake of breath which is suddenly stopped by the vocal cords, which results in a classic "hiccup" sound. Usually, hiccups go away by themselves when the diaphragm stops experiencing spasms. Since we're busy people, we can't wait for that, so I'll give you some methods that are popular and known to help stop hiccups.
Picture unrelated.