when an object is submerged in a fluid, it has a higher pressure below it than it does above, as there is more weight above it at the bottom than there is at the top. this leads to an upwards force called upthrust. you float or sink depending on whether the upthrust is more or less than your weight.