You could check the possible causes for statistics to not work, as described in the documentation Statistics.
Otherwise, it's possible that there's a bug in 3.5 which is fixed in recent versions of Moodle. This is another reason for you to upgrade as soon as possible.