Ups and downs

Hello I wanted some advice from everyone , so lately I've been feeling lonely,sad, I feel like my husband is always upset with me , we do have our good times but lately I feel like we get on each other nerves, I love him with all my heart and I know he loves me , And i know he's not cheating we have all accounts and everything together he never goes out alone he's always at home , but here recently one of ex txt me saying he wanted to see me I was so closed to do it just for the heck of it, I was going to make that mistake , I feel like god gives us test, thank god i made the decision to stop, I love my husband but I need help , can anybody give me an advice to spice up my relationship again , what can we do?