I'm trying to enumerate some things in the middle of a sentence

The first example works, but it would be most normal to have the comma before namely, rather than after.

The second example is not correct because the second sentence is incomplete.