The earthworm in a dream means that you need to work on your emotions rather than just putting them out there. You may be feeling uncomfortable with the way your life is going and the only way to deal with those feelings is to sleep on it and figure out what they mean in your dream.
You might be dreaming about an old relationship and are conflicted about how you feel about it. The earthworm in a dream interpretation might show that you still love that person but also want to move on and focus on new relationships as well.