Help! Baby won’t sleep unless being held

Janice

My son is 6 months and was doing great sleeping by himself. Now he will only sleep at night if I’m holding him or right next to him if I’m not he just cry’s nonstop. Naps are fine it’s just at bed time he flips a switch. Any advice would be great!