Baby only sleep while being held

My baby only sleep while being held. Once we put her down she wakes up and starts to cry loud yelling. She’s only one month and two weeks. She also spits up when we put her down. Why is this?