You need to PIVOT
your table like this:
SELECT
StateID, [1] as FirstMonthCount, [2] as SecondMonthCount, ...
FROM
(
SELECT DATEPART(m, TicketDate) TheMonth, StateID
FROM tbl
WHERE TicketDate >= '01/01/2013'
AND TicketDate <= '31/12/2013'
) as src
PIVOT
(
COUNT(TheMonth)
FOR TheMonth IN ([1], [2], ..., [12])
) as pvt