The is a planarn molecule where as is pyramidal because:
The BF3 molecule has a planar structure due to the absence of lone pairs on the central boron atom. In contrast, the NF3 molecule adopts a pyramidal structure because the nitrogen atom has one lone pair of electrons, causing repulsion and distorting the molecular geometry.