Gravitational force: it is a force that attracts any objects with mass.
Buoyant force: it comes from the pressure exerted on the object by the fluid. Because the pressure increases as the depth increases, the pressure on the bottom of an object is always larger than the force on the top-hence the net upward force. The buoyant force is present whether the object floats or sinks.
Hope this helped :)