This is called 3000 tonnes
displacement. If the volume of the ship’s hull is much larger than 3000
tonnes of water, then the ship is able to float.
Ships and their cargo are heavy, but as long as together they
do not weigh more than the water they displace they are alright.
If water gets into a ship, the ship will become heavier. If water is allowed to
replace enough of the air, the ship, its cargo and the extra water will weigh
more than the water taking up the same volume and the ship will sink.