Baby refuses breastfeeding in awaking time

Namra

my baby is 3 months old nw but from 5 days he start crying alot and not taking breastfeeding now strange thibg is that he take breastfeeding while sleeping hours in sleep but when he woke up he refuses breastfeeding abd start crying unstoppable then I have to give him formula fed.... plz help me what should I do