My baby has gas

My little man is hurting so bad all day he’s been grunting and straining and farting all day I gave him gas drops and they seem to do nothing I know he has to be in pain wish there was something I could do it’s like he’s  constipated trying to poo with all the staining and grunts i can’t get him to latch I don’t know what I do wrong there so I try and pump and give him Brest milk but most of the time he’s in formula but I’d like to breast feed I’m 19 and this is my first baby