Confused about boys !

I need help ! I’ve been talking to this lad for 6 months and now he’s just randomly blocked me off Instagram and Snapchat ??!! Should I text him and ask him or should I give him space and hope he comes back to me? It’s eating me up because he means a lot to me