What your doctor can do. If you have pain in the scrotum or testicle you need to see your doctor, or go to a genitourinary medicine clinic . Your doctor will test you for infection, and will try to work out the cause of the pain. Even if no infection is evident, your doctor may prescribe an antibiotic. Your doctor may prescribe a low dose of amitriptyline; this is a drug that helps to block pain. (In higher doses it is also used as an antidepressant, but not in this case.) Pelvic floor physiotherapy can help, but it is available only in specialized hospitals.
Two possibilities to mention:
1. If your skin is tender to touch and burning is not affected by body movements and different positions, then it can be shingles (Herpes zoster virus reactivation in one of the spinal nerves). Nausea can be also from shingles. This causes burning pain going like a stripe from the spine to the front. Often (but not always) rash appears after some time. Neurologist would tell you, if there is any available painkiler for your situation.
2. Bulging or herniated disc or some other disorder in your thoracic spine (osteoporosis, arthritis..) could cause pinched spinal nerve. This type of pain would be affected by different body positions and would not be tender to the slight touch. Again, neurologist could say more.