He said the story was completely false and was garbage. That would be clear enough for most people.
Calling it garbage is not denial. It might sound like a denial, but it’s not. It is disparagement of an accusation, not a refutation of the accusation.
Cruz would do himself a favor to state directly, “I have not had extra-marital affairs.”