Crates work for some, not all. I have had two Basenjis that were crate phobic and would potentially injure themselves trying to get out, i.e. damage to teeth, frantic and upset in crate to the point of defecating and getting it all over themselves as they struggled to get out, panting and in a panic all the time crated. Both of these were dogs I did not raise, one had been routinely crated before I got him, but always with other dogs crated next to him. Alone did not work! Proper training with a pup may work, or it may not. Some are accepting at first, then become increasingly anxious especially if left alone too long. My goal has always been to minimize use of a crate by creating a dog safe area that includes the ability to see outside. My dogs generally slept with me at night, so crating wasn't an issue at that time.
If you are home you can also use tethering to keep them out of trouble.