Hard time swallowing pills

What are some good ways to learn how to take pills/tablets?

Every time I try, I have water with it and the pill ends up melting with the water and the flavor of the powder is just so nasty that I end up spitting it out