What should i do?

You have to ask him for an honest answer, is he still serious and does he see a future with you or is he over you and wants to move-on? If he's online for other things and isn't talking to you means he doesn't want to keep contact. I don't get why he still sends mails to you though. You need to ask him and take it from there.