I had exactly your symptoms. Very possibly the speed sensor located on the off side front wheel hub. It is a hollow bolt containing the electronic sensor. Easily broken when wiping away excess grease etc.
“Revotech” make the replacement for about £50+ or so; also available via suppliers like Demon Tweeks.
All about it in past posts on TM & in Dave’s book, as already mentioned.