I agree with previous answer, some excellent solutions there but you need to think about training.
If you're a parent, a puppy/dog needs to be trained what is the right or wrong behaviour, like a child does.
Dogs like routine and boundaries, it gives them a purpose. That purpose is accentuated by teaching basic commands which includes a rest and chill command, especially for a puppy. Kids want to stay up all night but we know they need rest and sometimes have to be told to rest.
As for cage training, here is what I tend to do:
There's several ways to train your puppy to use the crate but this is what I did:
First make it comfortable with blankets and old duvets. The crate needs to have a blanket over the top, like a roof to simulate den conditions.
You need to make the puppy understand the above by associating the crate with positive experiences. Food is by far the best reward. Keep the crate open, and lure your puppy closer and closer. Eventually placing a treat in the crate. Repeat several times until the puppy feels comfortable or goes in on its own. A command can be added later. This may have to be repeated several times. If the puppy gets in the crate, getting hugs and fuss in the crate is really useful to emphasise security. I also used to feed my dog in it as well.
If you want to close the door, you can sit next to the crate when your puppy is in until they start sleeping and relaxing. Then I slowly closed the door and stayed there whilst reading, enhancing calmness. Did it several times a day till the closed door didn't bother the dog. Then I start on moving away, a few feet at the time, until I can do anything around the house. Don't go too fast. Don't be afraid to go back a step. The most effective training is for the puppy to work it out with your guidance. Never force a dog to do something, crate should never be associated with negative experiences.
As for general training this is what I have always done:
My attitude towards dog has always been the same: they are pack animals and need some sort of leadership. Even if people and dog behaviourist have new thoughts on the matter.
Your choices are:
1) Ignore a bad behaviour, show no interest or emotion once that behaviour occurs(for mild case)
2) recognise that the behaviour is bad enough that it needs a "negative" intervention. Basically disagree with the dog and use something simple like:"no!"
3) is the same as 2) but most effective of all: Start with 2) and then use what's called behaviour replacement therapy. Basically say "no", I disagree and then replace that behaviour by a command like"sit" followed by a reward.
You need to decide what's what and how you wish your dog to behave. Positive reinforcement is always best(the third option), however not always possible. This where training comes in. All of the basic commands(sit, stay, down...). This will give you and your dog structure and excellent communication. It's also very rewarding for both of you and will increase your bound. Be sensitive and start small, in a room your dog is comfortable in with few distractions and build from there.
To train a dog, it's like 3). Patience is required. You never force a dog into a behaviour, you let him work it out. Wait for the behaviour and then reward it. There are plenty of books available to help you. Your dog needs a leader. If he doesn't have one, he will be forced to lead and let's face it, being a leader can be stressful and difficult. If a dog hasn't had another older dog show him what to do, he will make it up and it generally turns to aggression.
Dogs have always worked with humans. Historically, it's thought that wolves got closer to humans to get an easier meal. In exchange for food and security, they guarded, hunted, herded and so on. These days, they don't work and find it hard to have a purpose. You need to make your dog work for rewards.
Rewards is not just food but it is a big part of training(adjust your dogs diet to compensate for treats) but also hugs, cuddles, toys, whatever is going to enrich their life has to be earned and not given for free.
This is a book used by many trainers: https://images-na.ssl-images-amazon.com/images/I/81H3RZUhYyL._AC_UL320_SR208,320_.jpg
I would also read articles from Cesar Milan the ultimate dog whisperer.
Good luck!