Some common mistakes are
to forget the square brackets around the list of entries,
to omit an entry from the list or to add an extra one,
to forget to separate the rows, columns, and entries by commas, and
to forget the parentheses around the arguments after matrix.
If you see an error message, carefully proofread your input and try again.