My son and I have this problem occasionally with chicks who won't go into a coop. What has always worked for us is to herd them gently into the coop at night. They don't seem to get it unless you herd them in. After two or three days of doing this, they get the idea and go in themselves.