Both indicate that you will be traveling to Spain some time in the future. However, the first sentence (I'm going to Spain) implies that it is going to happen relatively soon. (I'm going to Spain tomorrow. I'm going to Spain next month. You can even say "I'm going to Spain next year.") However, "I'm going to Spain in 2020" starts to sound a little weird without further context. "I will go to Spain," however, implies that is going to happen in the indefinite future. "Someday, I will go to Spain" sounds perfectly natural. "I will go to Spain tomorrow" sounds weird out of the blue and requires some background context. In sum, the two both indicate an action in the future, with a different emphasis on the immediacy of the time of the event.