My supervisor have been ignoring me and not giving me any tasks to do and I don’t know why?

For the past two months my supervisor behaviour have changed towards me a-lot he stopped giving me tasks to do or chat like before i mean the age gap between me and him is just 4 years so we got along really well and we work the same way but he have been ignoring me and avoiding to talk to me “on purpose” i’m a new hire and I don’t know what to do or why he’s acting like that at first i was like maybe he doesn’t like my work but he always used to compliment my work and once even told that i’m the only one that he can rely on in our team but why the sudden change?
My supervisor have been ignoring me and not giving me any tasks to do and I don’t know why?
Post Opinion