New born wont sleep in cot

Sausha

New born wont sleep in cot. All day and night bub just wants to sleep in arms. How can this habit be changed ?