Hey guys

can someone explain me when do I use the expression wouldn`t and when do I use didn`t want to? For example:

He wouldn`t talk to me.
He didn`t want to talk to me.

Is there any difference in these two sentences?