I have two Questions I need help with.

1. Why do some combinations of ionic compounds form a precipitate while other ionic compounds don't?
AND
2. Solutions of lead(II)nitrate and potassium iodide are combined in a test tube and form a yellow precipitate. What is the molecular equation for this reaction?

Well, a look around my pasture tells me that most ionic substances are not soluble. I have a lot of limestone here. Some are soluble, notably, Alkaline metals , and nitrates.
Solubility has to do with energy. These ions are attracted to water ions, or water polar ends, and when in the vicinity, release energy. If that energy is greater than the energy binding the ionic compound, then the compound breaks apart and dissolves as ions. If not, it is a precipitate.

Lead(II) iodide is an example of the internal binding energy being greater than the hydration energy.

Pb(NO3)2(aq) + KI(aq) ==> PbI2(s) + KNO3(aq)

You balance

The balanced molecular equation for the reaction between lead(II) nitrate and potassium iodide is:

Pb(NO3)2(aq) + 2KI(aq) → PbI2(s) + 2KNO3(aq)

To balance this equation, you need to ensure that the number of atoms of each element is the same on both sides of the equation. In this case, there are 2 potassium (K) and 2 nitrate (NO3) ions on the reactant side, so you need to ensure that there are also 2 of each on the product side. Additionally, there are 2 iodide ions (I) on the reactant side, so you need to ensure that there are also 2 on the product side. The lead (Pb) ion is already balanced with 1 on each side.

Therefore, the balanced molecular equation for the reaction is:

Pb(NO3)2(aq) + 2KI(aq) → PbI2(s) + 2KNO3(aq)