Every machine is different, but
On the top, the thread goes between two metal pieces that produce the tension
Occasionally, I don't feed it correctly and the thread goes around the two metal pieces, not through them, so there is zero tension
Maybe that's your problem
You said flat part of needle towards the rear, maybe it should go towards the front?
You probably need to take your machine in for serviceing/lubricating