Help frustrated

Amber
My son is 4 months old up until about 1 week he has only been sleeping a bit at night, u would put him to bed around 9 and he would wake up at 12 to eat but still be sleeping I would just feed him and he would go right back to bed. Now he is only sleeping for like an hour and waking up wide awake, or he wakes up as soon as I put him in his crib. Has this happened to anyone before? What could I do to help him sleep?