Codeine phosphate liquid is the common medication used to alleviate pain and cough. It works by altering the nervous system, reducing the perception of pain signals. This liquid form is often prescribed for various levels of pain, including headaches, toothaches, and muscle aches. It can also be used to control coughs through its soothing effect.