Just going to state the obvious, but you've made sure to clean the gas port, right? And was it purchased new or used? If used, you may need to replace the little ring kit. Also, what about your spring in the magazine? Is it not pushing on the shells hard enough?!? Does it have an aftermarket mag extension on it? Some of them aren't as reliable as others.
Give us more info and we'll figure this out...