If you do the same thing every night right before you put the baby to bed then it will know when its time for sleep
You have to keep the rutien constant
Like bathe it, rock it, feed it if its hungry, and then lay them in the bed. This is just one simple rutienn that you can use for putting an infant to sleep