In cases where bones cause pain by pressing on nerves, an MRI may be used to determine the best way to treat the problem.