If the twigs are swollen where the needles are brown, then you have spruce galls, cause by insects. You will need to research when to spray for prevention. It's not just anytime or all the time.
Your pine trees are actually spruces. That's important for diagnostic purposes.