how does current flow through a solenoid when a magnet is moved inside it?
The solenoid turns cuts the magnetic lines of force thereby creating an induced emf. This creates a current flow and it is best explained by Faraday's laws of electromagnetic induction.