Text messaging has stopped working on my iMac
After comments...

It's often good to just go through the old "switch it off then back on again" routine, no matter how trite it may seem ;)

In this case - sign out [from Prefs > iMessage] &amp; then sign back in again.