I have a bump on my head that hurts if I put pressure on it. What can it be?

Probably a cyst. Such as a sebaceous cyst or wen but it could also be a lipoma or other tumor. Excision is about the only way to diagnose and treat the problem.