My bike wont move the pedals just spin

The bike is new its like 3 months old suddenly this happened

When i push the bike forward by my hands or legs then the pedals start working again