Back pain and headache are the most common pain syndromes and have a significant impact on patients' quality of life. In the process of pain chronification emotional-affective, cognitive and motivational components can be distinguished. Cognitive impairments (CI), such as attention deficits, memory loss, reduced learning and decision-making abilities, are observed in almost one third of patients with chronic pain. The spectrum of CI in patients with chronic back pain is age-dependent. Primary headaches are also associated with the development of CI. An important measure to prevent CI in chronic pain is effective pain relief. Lornoxicam is a non-steroidal anti-inflammatory drug that acts at different levels of pain formation. The mutual influence of back pain and headache on cognitive function and the maintenance of cognitive potential in the complex treatment of patients are discussed.