I solved this same problem
I solved the problem of MacBook Air not sending messages -- restarted it in Safe Mode, sent a text message, it went through, I shut down and restarted normally, messages now go through with no problem.
MacBook Air (13-inch Mid 2013), iOS 11.4.1