LM1117 3.3 outputs 0.65 V
I'm pretty sure you just didn't connect it properly.
Verify pins:


GND
Output (pin 2 is also connected with the metal tab)
Input


If you replaced it and got exactly the same results the connections are the most probable reason, because if you by mistake bought the adjustable variant of LM1117, I think it would output 1.25V.
Also it would possibly be useful if you told us if the part heats up.