I like to dance.

Me gusta bailar.

I like to sing and dance.

Me gusta cantar y bailar.

I like the hat.

Me gusta el sombrero.

I like the toys.

Me gustan los juguetes. (because it is followed by a plural noun)

 

(edited from Spanish Dict)