The loss of sensation on the opposite side of the lesion is because the nerve fibers of the spinothalamic tract (which carry information about pain and temperature) crossover once they meet the spinal cord from the peripheries.
It is diagnosed by finding motor (muscle) paralysis on the same (ipsilateral) side as the lesion and deficits in pain and temperature sensation on the opposite (contralateral) side.