Are you able to generate behavioral code from the examples in the EAExample model?
If not, you'll need to confirm which edition of Enterprise Architect you are using. Code generation from behavioral models such as State Machines is only available in the Business and Software Engineering, Systems Engineering and Ultimate editions of EA.