Villagers will not go to their beds at night, and will often stand next to their house or wander around. Whenever I give them a little nudge they will usually head in to their house.
Villagers not sleeping in beds during the night
Some villagers don't sleep in bed after a few days.
Villagers are not sleeping at night
Villagers cannot find beds in their village.
Pathfinding issues on mobs using bed.