To factor $ a^{3}-4a^{2}+3a-12 $ we can use factoring by grouping:
Group $ \color{blue}{ x^{3} }$ with $ \color{blue}{ -4x^{2} }$ and $ \color{red}{ 3x }$ with $ \color{red}{ -12 }$ then factor each group.
$$ \begin{aligned} a^{3}-4a^{2}+3a-12 = ( \color{blue}{ x^{3}-4x^{2} } ) + ( \color{red}{ 3x-12 }) &= \\ &= \color{blue}{ x^{2}( x-4 )} + \color{red}{ 3( x-4 ) } = \\ &= (x^{2}+3)(x-4) \end{aligned} $$