My boyfriend has no sex drive?

I finally asked my bf why we dont have sex anymore and he said he's just in a rut and has no drive to do anything. I feel like its because of me. Anyone else? How do I deal with this and will he get it bAck? I'm probably overthinking it but it upsetsme