Does anyone know whats wrong with this?

One day i was trying to ride and my bike wouldn’t turn on and then i brought it inside and it warmed up now its doing this.