If the fish wants to sink, it absorbs the air from the bladder into the blood, the swim bladder shrinks in size and the fish sinks. If the fish wants to rise, it releases air into the swim bladder and the fish rises.
Some fishes such as sharks and rays do not have a swim bladder. They control their buoyancy by swimming and generating lift with their fins.
Bottom dwelling fish also do not have swim bladders.