The similarity is that they are both trying to persuade a person or people. They both have the same structure and both should be written the same.
The difference is that an essay isn't something verbal unlike a speech. A speech requires you to connect with your audience. With an essay, the audience reads your tone by what you write down.