Pictures of the failure and some of the feedramp / BCG would help trying to troubleshoot. Here's a troubleshooting guide I found on the High Road:
Zero bolt movement when round discharges:
Missing gas tube roll pin
Upside down gas tube
Missing or broken buffer tube retainer
Obstruction in buffer tube
Bolt short cycles when shot:
Leaking gas key
Bad gas rings
Leaking gas block
Recoil spring is too strong
Wrong type of buffer installed
Too many rounds in the magazine
Action is not oiled enough
Gas tube roll pin is missing
Gas block is not properly oriented
Carbon buildup causing sluggish movement
Bad ammunition
Rifle does not feed right when shot:
Too many rounds in the magazine
Magazine is not properly seated in lower
Weak magazine spring
Rifle may not have M-4 feed ramps
Check for home gunsmithing of feed ramps
Rifle does not lock open after last round:
Weak magazine spring
Damaged follower
Bad ammunition (low pressure= cycle failure)
Magazine is not fully seated
Damaged bolt catch
Carbon buildup around bolt catch
Rifle does not fire when trigger is pulled (Click but no bang):
Broken firing pin tip
Carbon on back of firing pin = less protrusion
Weak hammer spring
Excessive headspace
Bad ammunition (faulty primer)
Missing firing pin
Bolt is out of battery (check for bolt bounce)
Rifle double fires or string fires:
Improperly adjusted adjustable trigger
Worn out military trigger
Home gunsmithing stoning job
Missing trigger spring
Missing or worn disconnector
Carbon build up on firing pin
Round is jammed under charging handle:
Worn magazine feed lips
Worn magazine spring
Rifle double feeds when shot:
Bad magazine
Broken extractor
Worn extractor spring
Carbon in chamber
Trigger won’t move when pulled:
Obstruction underneath (primer or rock)
Safety selector is engaged
Bolt is locked open
Round doesn’t extract when shot:
Broken extractor
Worn extractor spring
Dirty or corroded ammunition
Case head separation
Carbon in chamber
Lacquer coated ammunition
Round does not fully chamber:
Dirty or corroded ammunition
Improperly sized reloads
Tight headspace (check proper bolt fit)
Carbon in chamber
Bullets keyholing on target:
Improper bullet weight to rifle twist ratio
Check for rifling in barrel
Magazine inadvertently drops out of rifle:
Improperly seated magazine
Broken or faulty magazine catch
Ambidextrous magazine catch
Worn out polymer magazine
Bargain quality polymer magazine
Extractor breaks frequently:
Discontinue use of steel case ammunition
Bolt is frozen half way back:
Buffer is lodged in buffer tube
Check for rough machining of buffer tube
Rifle won’t hit broad side of barn:
Optic is not properly sighted in
Poor quality ammunition
Check for proper ammunition caliber
Operator error, contact local instructor for training
AR-15 Failure to feed issues - THR