The sternocleidomastoid muscle is one of the largest and most superficial cervical muscles. The primary actions of the muscle are rotation of the head to the opposite side and flexion of the neck. The sternocleidomastoid is innervated by the accessory nerve.

It is given the name sternocleidomastoid because it originates at the manubrium of the sternum (sterno-) and the clavicle (cleido-), and has an insertion at the mastoid process of the temporal bone of the skull.

The function of this muscle is to rotate the head to the opposite side or obliquely rotate the head. It also flexes the neck. When both sides of the muscle act together, it flexes the neck and extends the head. When one side acts alone, it causes the head to rotate to the opposite side and flexes laterally to the same side (ipsilaterally).

It also acts as an accessory muscle of respiration, along with the scalene muscles of the neck.

More Info: en.wikipedia.org