For section (a), if you pick a value for $a$ such that $d=\gcd(a,12)\ne 1$ - that is to say, $a$ and $12$ have a common factor $d$ - and then pick $b$ that is not a multiple of $d$, you will have an equation $ax\equiv b \bmod 12$ that does not have a solution. For example, $8x\equiv 10$, which has $d=4$, fulfills the requirements.
Then for section (b), for any equation $ax\equiv 0 \bmod 12$, where $a$ is chosen as above, then choosing $x=12/d$ will solve the equation.
In fact if you want to avoid non-zero solutions to $cx= 0$ in $\Bbb Z_{12}$, you need to have $\gcd(c,12)=1$. However then for any choice of $b$ there will be a solution for $cx=b$.