For $x,y \in \mathbb{Z}$, define $x*y = xy + 1$.
Then * is clearly commutative.
As for associativity,
$$a*(b*c) = a*(bc + 1) = a(bc + 1) + 1 = abc + a + 1$$
$$(a*b)*c = (ab + 1)*c = (ab + 1)c + 1 = abc + c + 1$$
so associativity fails for any triple $(a,b,c)$ with $a \ne c$.
Here's another example . . .
For $x,y \in \mathbb{Z}$, define $x y = x^2y^2$.
Once again, commutativity is obvious.
For associativity,
$$a*(b*c) = a*(b^2c^2) = a^2(b^2c^2)^2 = a^2b^4c^4$$
$$(a*b)*c = (a^2b^2)*c = (a^2b^2)^2c^2 = a^4b^4c^2$$
so associativity fails if $a,b,c \ne 0$, and $|a| \ne |c|$.
One last example . . .
For $x,y \in \mathbb{Z}$, define $x*y = -x-y$.
Commutativity is clear.
For associativity,
$$a*(b*c) = a*(-b-c) = -a-(-b-c) = -a + b + c$$
$$(a*b)*c = (-a-b)*c = -(-a-b)-c = a + b -c $$
so associativity fails if $a \ne c$.