Try to take him outside. So the dog can reflieve itself outside. Some dogs don't want to do this job inside. They just suddenly perfer do in in/outdoor.
2 days is a quite a long time, if your dog didn't even pee a bit. you must take him outdoor ASAP.