Materials which are less denser than water float on water while the materials which are relatively denser, sink in water. So a major factor which determines floatation or sinking is density.
Example of objects which float in water are: paper, plastic balls, etc
Example of objects which sink in water are: iron, stones, etc