Going into a little more detail, the hole is the ear, or auditory meatus. Lizards (and crocodiles, birds, extinct dinosaurs, pterosaurs, etc) lack external ears. read more
Some lizards dig holes to stay cool or warm depending on weather, or to lay eggs. read more