The accessory nerve (CN XI) is a motor (efferent) nerve supplying the sternocleidomastoid muscle and trapezius muscle.