How can I tech my baby to sleep by himself?

Be

My baby is 4 months old and only falls asleep while breastfeeding or when you walk while carrying him in your arms. Most of the time as soon as you lay him on the crib he wakes up, and when he stays sleep he lasts 20 minutes and wakes up.

It’s been a month that I’m trying to teach him to sleep by his own and have him take naps during the day. I use a soothing playlist, I have black out in my bedroom, I close the door, I shush him, I have tried with baby pacifier… but haven’t been successful.

Any advise?