If your male friend has stopped talking to you, it's likely that he has feelings for you that he's keeping hidden.
When a male friend likes you, he will begin to ignore you out of frustration at having to hide his feelings from you.
He will even want to forget you in order to make you miss him.