Unfortunately, there are several things that can cause upper back pain. It can come from the spine (bones, nerves, discs, ligaments), the muscles, the lung (pleurisy), the heart (referred pain), and so on.

Without a thorough evaluation, it is not really possible to give you too much specific information.

If it continues, or worsens, or you develop further symptoms, you may want to see your physician.