Stuck at boot logo and not able to access the recovery: OnePlus X

A

AC Question

EVERYTHING THAT HAPPENED
I was running on AICP, then i noticed that Stock rom for marshmallow was out. So i tried installing it with twrp it gave me some errors and then installed the stock recovery and then installed the Stock rom, it all went well. After installation everything was working and i wanted to root then get the TWRP back, then i rooted my device using kingroot and installed TWRP using TWRP manager the app showed that it's a success and the i booted into recovery but then nor was i able to access the recovery neither able to install the stock recovery . Then I tried to unlock the bootloader and install recovery using adb. I followed the oneplus fourm thread(cannot post outside links as I'm a new member) to do everything and then after the command " fastboot oem unlock" my phone did try to reboot but i got stuck on the bootlogo and i cannot access the recovery as well.

ONLY fastboot mode seems to be working.

can anyone tell me how should i go about this?
EDIT: I flashed recovery.img with Fastboot and adb , but still not able to get past the boot logo.