I don't understand what kind of grain you could have given him that is big enough to get stuck in mouth?
I would suggest you take your bird immediately to an Avian Vet in your driving area to have this taken care of. If it is stuck, then it means bird cannot eat, so this is an emergency.