Why do guys act like this sometimes?

My male coworker had been talking to me and being friendly then now has began avoiding me and became more aloof and won’t really talk to me but still looks over at me. Why is he acting like this? We didn’t argue so what have I done wrong?
Why do guys act like this sometimes?
Post Opinion