Text message? Depends on the length of the relationship.
A few dates: Texting is OK
A few months: Phone call is appropriate.
A few years: In person is mandatory.
Of course, there are other ways to break up. Instant Message, Letter, changing your status on Facebook, or a simple dear john, like these folks did.