Sexless wife

I'm married,me and the hubby haven't have sex in three months, I'm starting to believe that he having extra marital affair, cause .I'm a beautiful woman what can be the problem I getting very discouraged in this marriage .