I was playing football then iheard a sound from my knee then pain starts . I can not flex(from pain)  my leg from semisetting then after a couple week rest it get better but if i sleep on my back  i cannot rise my leg up straight and the pain returns after iplay some sport
This shows that you have torn one of your knee ligaments. This needs an MRI & and a consultation with your nearest orthopaedic.