Well, the obviously loose gas block wasn't helping, but that still shouldn't have made the case stick. Your chamber likely has some debris or tool marks. Could be a "tight" chamber if it's a match barrel.
Buy a nylon chamber brush and a cheap-ass walmart rifle cleaning kit.
Take a section of rod from the cleaning kit and attach the brush; chuck up the other end of the rod in your drill. (A variable speed drill is the way to go if you have one).
Take the upper off your rifle. Run the chamber brush in and out while spinning in the drill. Don't go crazy, 10 or 15 seconds is plenty.
Then, take a live round and drop it in the chamber, it should fall in easily and completely with a nice thunk. Tilt the barrel towards the ceiling and the round should drop right out. (or fall out with a light bump)
If the round sticks or drags going in or hangs up from dropping out, go back to the chamber brush.
This shouldn't take more than a few tries. If it does, there's likely something else going on. But without more info that's all I got at this point.
If the above doesn't work -
What is the make, model, and chambering (.223, 5.56, Wylde) of your barrel? Did you clean and lube the barrel first?
What type(s)s of ammo were you using? Brand? .223 or 5.56? Brass or steel case?
A picture of the inside of the receiver focusing on the barrel extension and feed ramps would be helpful, as would a picture of the chamber lit with a flashlight.