i had a similar problem with my m4
i pushed the blowback part forward and it continued to function
the locking mechanism may be broke so u may need to super glue it to the blowback bar inside
just take of the top reciever and you will be able to see whats happened