"Error: Invalid Number." when sending an SMS
I have the Moto X as well, same issue (kept showing 7 digit number instead of 10). Read somewhere to delete the entire conversation (all text messages to/from that contact) and after that when I went to compose a new message, the contact showed up as 10 digits and the text went through.

I hope this works for you!