If your upper back hurts it’s a good possibility that you could have a disk in your back that’s out of place. Sometimes going to the chiropractor is the only way to take care of problems like this. But if you don’t want to spend the money to do that, try using a heating pad or taking a nice hot shower to losen muscles, as it could also be a pulled muscle in your back. If the heat doesn’t help, I’d probably go to the chiropractor. Usually they’re reasonable in price.