The accessory nerve is the cranial nerve that arises from the cranial and the spinal bones and is responsible for controlling the swallowing and the movement of the head and shoulders.