Thanks for the reply, it is a bit strange as it was working but has developed a fault whilst not being used,which is why the dirty switch contacts made sense.
I removed the top of the battery and sprayed switch cleaner over the switch area and checked the fuse,which was ok.
The problem is ebike...