How to get newborn to keep pacifier in mouth?

How can I get my baby to keep her pacifier in her mouth? She sucks it and then spits it out 2mins later.