Don’t know what’s wrong

My son just turned 5 months old today. He’s been sleeping well but these couple days he’s been waking up crying and screaming. Called the dr and she said it might be gas because he’s started eating homemade veggie purées (dr recommend). However, he’s been pooping fine. Honestly, don’t really know what it is.