This can be researched online in more detail, but if cratetraining is not working because your dog is soiling in the crate, you should discontinue the training immediately — as you are only reinforcing that it is okay to soil their area.
Be patient when introducing cratetraining and make sure to do your research when deciding on the best techniques to incorporate into your dog's schedule.