Traveling in Spain (Madrid)

I hope to be traveling to probably Madrid and Barcelona for my 30th birthday at the end of January next year. So, I'm curious about the locals favorite experiences, things to look out for, and if there's a better way than the train (or cheaper way to get tickets) between these two locations.