I had a response typed out, but then I realized there were many nuances I wasn't covering. This is a pretty good link which explains the many uses of would.
https://www.englishclub.com/grammar/verbs-modal-would.htm
Note that "he didn't come last night" and "he came to my house" simply states what happened. It does not say anything about the decision or intentions of the subject, which is "he" in this case. Whereas "he wouldn't come last night" implies that he made a decision not to come, which is talked about as a "refusal" in the link above.