I had that problem when I was giving them range time outside of their brooder. They did not want to go back in that brooder! But now, I can get them back into their run pretty easily. I call them while I walk to the run, I sprinkle a half cup of rolled oats around calling "chick chick treat", and they come running stampede-style for the treats. Once everyone is inside, I close the door to the run and they can play until it's time to go to roost. I've had some success with using the same tactic in the coop but since there is less visibility into that space, it's more difficult to get them excited to go in. I have to prop a big board at the door, sprinkle the oats around the coop and a few on the board, and hope they're all paying attention when some figure it out and go in or those few will eat it all and come back out while I'm still trying to round the rest up.