It depends on the context or else both quite mean the same. But first, let's clear the definition of used to -
used to - (takes an infinitive or implied infinitive) used as an auxiliary to express habitual or accustomed actions, states, etc, taking place in the past but not continuing into the present.
and liked is a simple word, the past tense of *like.
Let me think of an example to clarify it.
I had a pink dress which I wore on my cousin's wedding ceremony. She liked it very much. = It could be for that one time occasion. She liked the dress and that's it!
On the other hand,
I had a pink dress. My cousin used to like it very much. = Whenever/every time she would meet me, she'd recall that dress. It's not a one time 'liking'.
Also, consider what others said and the dictionary mentions - if your cousin used to 'like' it, she does not like it anymore.