Those are the classic symptoms of a failing battery, just enough juice to allow a kickstart then, as the alternator charges it up a bit you'll get some life from it on trying to restart it.
If its a 12v battery a opposed to a 6v, then give it a charge with a car Charger, if it still dont respond then the battery is knackerd.
Also check for a voltage at the starter terminals with a bulb or meter, press the starter and it should light up or give a reading on a meter.
Just cos the bike starts on kick doesent mean the battery is alright, if its something new thats happened its almost certainly the battery.
Some bike wont start on electric when in gear for obviuos reasons,thats why pulling in the clutch will get a start.