Is it possible to get distance travelled without gps
Yes, it is possible, and bike computers have had sensors like yours before GPS existed. Either your sensor is broken, in which case you can have it replaced, or you have installed it wrong.